Maybe. While many cases resolve by way of a plea bargain prior to trial, in many cases there is a disagreement about what happened, or what a fair resolution would be. In these cases, the matter proceeds to a trial so a jury or judge can determine whether the person charged is guilty or not guilty.