What's it feel like?

So shortly after me and my husband had sex I was getting crampy feelings under my belly and the side feeling like I had to go to the bathroom (I didn't have to really go) but then they kept coming back periodically throughout the night.... Was that contractions? I'm 36 weeks tomorrow