Unsure, but this is not the case here.
Actually, if the prosecutor accepts the plea and the court imposes punishment, that is exactly the case.