In terms of burdening the already dysfunctional healthcare and criminal justice systems of the US, it sounds like it works great. If the junkies no longer exist and less frequently get HIV, their cost to society is less than if they were alive, disease spreading, and committing crime.