heart burn medication

Melissa
Hello all, 
I'm in my first trimester and having bad nausea and indigestion. I was at the doctors today and he gave me a pill for the nausea and mentioned I could take my ant acid pill I was on before becoming pregnant but my last appt two weeks ago he said only take Tumbs.. So now I'm confused, so has anyone in here
Taken apo- ranitidine 150mg while pregnant???