No, I don't think it has to go that far. I think there should be a recognition that you've been in a punitive environment for as much as you were likely to be sentenced to, but those charges could remain. It's still important, I think, to find out if somebody is guilty or not.
One remedy would be to stay the charge, but I think, actually, you could just release the person from jail pending their actual trial, and it would be a little less of an interference with the criminal justice procedure.