Could I be in labor?

I'm 38 weeks and scheduled to have a cesarean Wednesday. I had sex last night and now I'm in a lot of pain. My uterus is tightening so bad every few minutes and lasting 40 seconds. Literally every 4 or 5 minutes for over an hour.