Of course it is, it's called "plea bargain" - defendants choose between pleading guilty for a pre-arranged punishment or the DA putting up a boatload of charges with the expected punishment excessively above the plea deal [1].
[1]: https://innocenceproject.org/guilty-pleas-on-the-rise-crimin...