To prevent damage from chlorine, you can use a product with silicone and a swimming cap before going to the water. Wash the hair thoroughly with a good shampoo and conditioner afterwards. There are shampoos specific for swimmers in the market.
Preventing the damage is possible, with the use of the correct product and avoiding excessive heat and sun exposure.
It will help if you use a hat, and a routine with a good shampoo & conditioner specific for your hair type.
Be good and be healthy.
Vanessa