No, because there would definitely be some unknown and new situation that the AI would not know how to deal with. Also, I doubt it would be able to understand the emotions and motives for victims, witnesses and criminals, all of which can have an effect on sentencing.