I got prescribed medicine for Gerd

Jackie • 24 y/o Jake G 💍 mama to LNG 4/21/17 👶💙. SAHM . Idgaf about your opinion. It doesn't phase me🙌I say whats on my mind. Gtfo my page if your a hater. I don't need that type of drama. Stay blessed . 🙏🏻
I just went to the ER on Wednsday due to burning stomach pain and bloating. The doctor prescribed me a generic brand of Prilosec and a gas medicine too. I just found out that I may be pregnant and I don't know if I should continue taking these meds as they are 40-50mg. I was told to take them once a day everyday for a month and 1 week. Is anyone on here a doctor or a pharmacist that can help me with this issue ?