I don't think a judge can order it. But a judge has the discretion and the authority to offer it.
You can take the heavy fine and time in jail as is my right as a judge to place on you as punishment.
You can except less of a fine and less time in jail or no time in jail if you also do some weird sh1t to shame you in public...
Guy can take the plea or not...his choice.
but I would add in if a guy agrees to terms, but can;'t go through with it the original punishment is added on to.