From my perspective, the goal of the criminal justice system is to rehabilitate prisoners so they can reintegrate into society and not reoffend.
If your view of the criminal justice system is that it's about punishment, then I suppose you could argue it's successful. But from a rehabilitation perspective, I'd argue that if the reoffending rates are as high as they appear to be, then it is failing.