Yes, bloating can be a side effect of some medicines, including antacids, painkillers, and antibiotics. Consult your doctor about possible substitutes if you have bloating while taking medicine.