Pool sex

Can you get pregnant while having sex in the pool? Or would the chlorine kill the sperm before it reaches the egg?