Can sex hurt when you are a few days from getting period

Ashleigh
So I had sex tonight and it wasn't amazing as it usually is. I felt like my vagina kept tighting up. Could it be that in three days I am supposed to start my period??