36 weeks contractions?

I don’t know if I’ve been having contractions or not. For the past 2 nights I wake up in the middle of the night with really bad stomach pain and I think “oh gosh, I’m in labor.” They eventually go away. Is it normal to have contractions prior to birth?