Can masturbating in a bath cause an infection?

Recently I had an infection which needed to be treated three times, so now I'm really anxious if something down there is not right. Is there a possibility that masturbating in water during bathing can cause an infection? Because I did it yesterday and since then I have a strange feeling inside, like there's still water or something. (Or maybe I'm just overreacting) And generally, can masturbating cause infections? (always clean hands, no fingering)