Closely supervised infant swim classes are typically safe for children from the age of 6 months onward. However, infant swim classes don't guarantee that a child will learn enough to stop themselves from drowning.
Note: Some doctors also caution that children prone to respiratory infections shouldn't swim in chlorinated pools until they are more than 2 years old.