Yes, some medications can potentially trigger leg cramps as a side effect. Medications such as statins (cholesterol-lowering drugs), drugs prescribed for osteoporosis or menopause, certain anti-inflammatory drugs, histamines, and certain antibiotics have been associated with leg cramps. It's advisable to consult your healthcare professional if you suspect that your medication might be contributing to your leg cramps.