Can you go swimming after getting a wart frozen?

I just got my wart frozen and my doctor said no swimming, I had to get a school exucuse so NO NO SWIMMING.