Tums during pregnancy?

Are they safe to take? I have really bad heart burn and my doctors office is closed.