Criminal Law Questions? Ask a Criminal Lawyer.
Yes, he must make his drug problem known to his lawyer (or defender). They maybe able to get him into a drug court program, or similar rehab oriented form of punishment, which will avoid a lengthy prison term...
I do this for clients in the Harrisburg, PA area all the time.