You can, at least for some drugs: in many places, possession of drugs is a criminal offense, carrying jail term. However, it is commonly understood today that jailing addicts so that they can recover in controlled setting is inhumane, as opposed to letting them overdose under the bridge.