Question: if you dye your hair can you go swimming?
Answer: You should wait 3 days to wash your hair after getting a color treatment so, I'm pretty sure 3 days before swimming would be the smart thing to do. Chlorine is never a good thing for color treated hair, so don't stay in the water for long periods of time, and rinse, and dry your hair thoroughly after getting out.