Is it bad if you get water in your vagina?

Can it give you an infection or something? Thanks