Can you get wet while your on your period?

So can you still let wet while on your period? My boyfriend and I were just messing around and things got pretty intense. When I go home, I found that my leggings were soaked and I'm on my period and have a tampon in. Which is pretty strange.