Yes. Substances that intoxicate or cloud the mind, such as narcotics, fall under the ruling of khamr because they share its reason: they take away the mind and cause harm. The Quran also warns against destroying oneself (4:29).
Hai orang-orang yang beriman, sesungguhnya (meminum) khamar, berjudi, (berkorban untuk) berhala, mengundi nasib dengan panah, adalah termasuk perbuatan syaitan. Maka jauhilah perbuatan-perbuatan itu agar kamu mendapat keberuntungan.
Hai orang-orang yang beriman, janganlah kamu saling memakan harta sesamamu dengan jalan yang batil, kecuali dengan jalan perniagaan yang berlaku dengan suka sama-suka di antara kamu. Dan janganlah kamu membunuh dirimu; sesungguhnya Allah adalah Maha Penyayang kepadamu.
Hadith
Sahih Muslim 2003a
Ibn 'Umar reported Allah's Messenger (ﷺ) as saying:Every intoxicant is Khamr and every intoxicant is forbidden. He who drinks wine in this world and dies while he is addicted to it, not having repented, will not be given a drink in the Hereafter
Sunan Abi Dawud 3681Grade: Al-Albani: Hasan Sahih · Muhammad Muhyi Al-Din Abdul Hamid: Hasan Sahih · Shuaib Al Arnaut: Sahih Lighairihi · Zubair Ali Zai: Isnaad Hasan
Narrated Jabir ibn Abdullah: The Prophet (ﷺ) said: If a large amount of anything causes intoxication, a small amount of it is prohibited
This is general information, not a fatwa. For your own situation, ask a qualified scholar.
Questions about halal and haram
Are drugs and other intoxicants haram?
Yes. Substances that intoxicate or cloud the mind, such as narcotics, fall under the ruling of khamr because they share its reason: they take away the mind and cause harm. The Quran also warns against destroying oneself (4:29).