Absolutely judges have ultimate discretion to change plea deals and decide whether or not the plea agreement between the prosecutionand defense would be prudent.  If the judge disagrees and later changed your conditions, your plea could be withdrawn at your discretion and if the judge did not give you that opportunity, then you may have an appealable claim.  Talk with your lawyer about appealing the judgment or going to talk to the prosecution about post-conviction motions they may be able to bring to fix the issue. If you took the plea and the judge's decision and didn't preserve the matter for appeal or waived your right to a trial, you may need to weigh whether or not you have any other legal options to have this matter brought before another judge.