You should still avoid getting water-resistant AirPods or AirPods Pro wet on purpose, but they should survive the odd splash. The original AirPods or AirPods (2nd generation) aren't waterproof or water-resistant at all, so don't ever let them get wet.