Absolutely. Fasting goals are set the same way as any other health goal. You can set a goal for both your fasting hours and eating window.
Choose Settings from the main (left) navigation menu.
Then, select the Health Goals tab.
Scroll down, and then configure goals for Fasting Hours, Eating Window, or both.