If you are taking a prescription medication, consult a physician or pharmacist before using a heartburn medication to avoid drug interactions.