Nurse had a chart that categorized medicine risk level in pregnancy, category A having no risk at all,
ranitidine falls
in category B as showing no harm
in animal reproduction but no human studies being available. Category C have having an adverse affect to animal reproduction but no studies on humans.
I've always said if symptoms were so intolerable I would take it but, I haven't had the need to take it. So, it's up to you and what you think is best.