Yeah I think it is possible these days.
Some municipalities have truly outlandish penalties on the books now. If you draw a prosecutor and a judge who both have an agenda to look "TOUGH ON DRUGS!" and you are represented by a PD who reviewed your case for a total of about 2 hours the day before your court appearance, you could get the max sentence. Now if your history is totally nonviolent, you are very unlikely to do even 3/4 of that bid incarcerated. Probably a shitton of parole for the balance.
Unless you're in Texas. They're content to just spend massive amounts of taxpayer dollars incarcerating nonviolent offenders for decades. They could move these people back out on the streets, make them get jobs, pay taxes and contribute, pay their fines, and generally add value back to society. Instead they're backward ass, provincial idiots who are shooting themselves in their collective asses.