Safe to us

On aug 23 I had unprotected sex and was due for my period the 28 but started the 27 my question is , is it alright to use a tampon?