No, it is not compulsory but it is advisable. A swim cap keeps the hair out of your face, helps improve hydrodynamics, and prevents strands of hair from being all over the pool and gathering at the bottom. It promotes water hygiene.