Period sex

So my husband and I had period sex and he came in me. I put my tampon in before peeing. Is that safe?