Yes, but DMT is produced in small amounts in the brain and if it is released into your body when you die, as theory suggests... then it could be held accountable for whatever out of body, or afterlife experiences we have when we're about to die.

And Ketamine, allows you to go to the brink of unconsiousness without actually slipping into it. Some would compare that to the "Mental Realm" of religious and/or spiritual teachings. But like I said, it's all theory.