Bad period cramps

37 weeks and having awful period cramps... They're waking me up from a dead sleep. I had a pelvic exam yesterday around 130. Is this from the exam.??