Is it safe to take tums every night during pregnancy?

Gabriela • First time mom. 23. Due 06.26.17
I started taking it at 30 weeks because the heartburn has been getting worse. 
Would it be safe to possibly take one every night until the end of my pregnancy?
Thanks!