Cramping after sex

My period is due in 2 days and I had sex tonight and afterwards I was cramping really hard. Can sex make you cramp and make your period come earlier?