swimming on period

Can I swim on my period do I just use a tampon?