Absolutely can be a side effect of a number of meds. SSRI antidepressants cause disturbing and very vivid/lifelike dreams very often, and sometimes the med needs to be stopped. Likewise some antihypertensives. Curiously, another antihypertensive, prazosin, is now being used to prevent disturbing dreams in many such cases. I've seen a few patients who say it's very helpful.