Yes, but I don’t think the government can stop people from hurting themselves. The government can only prevent people from harming others. The government exists to protect life, liberty, and private property.
Protecting those things demands dealing with drug users. I’d prefer execution, but it is what it is.