it would depend on the type of ear infection: a middle ear infection or an external ear infection (swimmer's ear). yes it is possible. swimming with a middle ear infection especially if there was diving or underwater swimming could be painful. a deep dive could actually rupture an eardrum if you have a lot of middle ear pressure. swimming around on the surface of the water is not usually a problem. swimmer's ear (otitis externa) is often caused by water exposure so it is a good idea not to overly expose the ear canal to even more water until it has been treated. wearing a form-fitted ear plug may be helpful.
will swimming worsten an ear infection?