Period/swimming

So my family goes to valley fair every summer and I'm thinking I might be on my period the day we go. Is it safe for me to wear a tampon and go into the water or get wet?