After cervical exam

I’m 39 weeks, I was checked for dilation today, I’m completely closed but starting to soften. I’m now having period like cramps on and off... I’m super uncomfortable. Do you think it was bc she felt my cervix or ??