Bactrim and tums

I have heartburn right now is it ok to take tums with bactrim?