Yes, certain medications can disrupt the normal balance of gut bacteria and lead to diarrhea. Antibiotics, for example, are known to affect the digestive system and may result in diarrhea as a side effect. If you suspect that a medication is causing diarrhea, consult your healthcare provider before making any changes to your treatment regimen.