They stop spending all their time doing whatever it takes to get heroin. They can do other things with that time. Get jobs, for example. It's basically opening the door to rehabilitation.
If by "rehabilitated" you mean "not addicted to heroin", sure, not so much. If you mean "no longer a danger to society", very much so.