Is it safe to take an antacid with an antibiotic?

Depends. Check with the pharmacist regarding the specific medication to which you are referring; antacids in general can cause poor digestion of medications.