Medication for heartburn/acid reflex ?

Charmia

I’m 24 weeks & I got some rolaids , is that ok to take or what is ?