Can I have sex?

Hi guys, here’s the question:

Im 34w and last week i had some intense cramps, some tiny little contractions, I had NST test a couple of times but they were ok. They gave me a shot, medications etc. just in case so that i didn’t give birth early.

Yesterday i had an appointment with my ob, he said everything was good and i didn’t have any risks for an early labor.

But bcs my mom was with me, i was a little embarrassed to ask him if i could still have sex.

What do you think? Would it be ok if i have sex now that i dont have any risks?

Thankss