Labor?

Im nearly 39 weeks and all last night in my sleep i was getting period like cramps off and on? Nothing crazy painful, i was able to sleep still but i could feel them. Could that be like a sign of labor near or?