Sure. It has happened many times with supplements I have tried, so I suppose it can happen with medications too. There are AP’s I can’t take because of the side effects they had on me, but I wasn’t on them long enough to tell their impact on my psyche.
But I wouldn’t just stop medication if you become delusional(which is what usually happens eventually)
You may just need a different and better medication.