Does a rain repellent stop ice from forming on the windshield?

It helps, although it cannot fully prevent ice. Because water and frost bond less strongly to treated glass, ice tends to form a little later and is usually easier to scrape or melt off. In freezing conditions a frosted windshield will still need defrosting or scraping. Use a plastic scraper rather than metal tools, and avoid pouring hot water on cold glass, which can crack it. Scraping and de-icer fluids gradually wear the treatment, so it may need reapplying sooner after a harsh winter.

References
  1. Highway Code Rule 229: Driving in Adverse Weather, nidirect (UK Government)
  2. De-icing, Wikipedia
  3. Hydrophobe, Wikipedia
Detailing Dictionary87 technical terms explained in plain English, from beading to wet sanding. Open the dictionary