If you're acquitted, I don't think a confession of guilt would merit a (criminal) retrial, but if you were convicted and they found out later that a witness lied, or that a juror, lawyer, or judge was bribed, or if new evidence surfaces, that would merit a new trial.