Went to my NST and was having contraction 2-3min apart

RyAnn
So I went in for my weekly NST, apparently I was having contraction 2 to 3 minutes apart and I didn't even know it. My doctor told me to get to the hospital to get a shot to stop them. They started an iv to hydrate me. They were able to stop the contractions but I'm scared of them coming back. I'm 32 weeks and 2d.