It can but it’s not always drugs.
A lot of people don’t understand how much our tightly interconnected past experiences, mental/behavioral imprints, thoughts, beliefs, etc. play in what we consider to be our person or Self.
When you get a beginners level understanding in how these things combine to form who you think you are, then start playing around with them, a lot of folks “lose their mind”, or touch with this reality, because they haven’t mentally prepared themselves for experiencing the ultimate reality that you can get glimpses of by doing certain drugs or performing certain rituals.
Sometimes it’s best for folks to just stay plugged into the matrix.