Can you swim in a cardboard tampon

Are cardboard tampons okay to swim in? Also can you wear leggings with a tampon and no underwear