Getting into treatment and taking that treatment very seriously and maintaining sobriety would be a great place to start. Speak with your attorney.
Experienced Criminal Defense Attorney--San Diego County--Free Consultations.
If I read your question right you are asking if beginning treatment will help you in getting a better resolution to your case. The short answer is perhaps if you get in and demonstrate that you are trying to sincerely turn things around. It all depends on the prosecutor and if you have any time left to actually create a record of accomplishment. I can't comment on whether you should take the case to trial without knowing the whole record. You may examine DOSA (Drug Offender Sentencing Alternative that would reduce your prison time and get you treatment. Ask your attorney about that. Good Luck.