Yes you can. You don't want to do it directly after but if you colored your hair blonde they say too much chlorine can make it turn green. That is only after you swim a lot. But swimming will usually not hurt colored hair.
;)
;)