Yes. The majority of cases do not go to trial.  The defendant can plead to all of the charges in the indictment, or to fewer or lesser charges offered by the Assistant District Attorney.  Unless a sentence is negotiated as part of a plea agreement, the judge will determine the defendant’s sentence based on the facts of the case, the defendant’s prior criminal history, and the laws governing permissible sentences.