Well you'd be adding a charge and hopefully mitigating the addiction, which is a rational tradeoff. And this is assuming this person doesn't already have a record.
As opposed to doing drugs in a public park?
Edit: 6 *months more in jail, in above post