tampons after period

ok so my period ended. but I'm going to a pool with my boyfriend today and I'm afraid it's gonna come back. can I wear a tampon when ok not on it?