What is the Halacha regarding a ten-year-old boy and mixed swimming? May he?

This is in a small private pool.