Does coolant prevents rust?

The modern antifreeze, does much more. It provides year-round protection of the cooling system. With proper additives it prevents freeze up in winter and boil over in summer (especially in cars with air conditioning). It provides protection from rust and corrosion and does not harm rubber hoses and plastics.