Sure, but in the 21st century people are typically not thrown in prison on the basis of a confession only. The prosecutors have to have corroborating evidence.
We do have criminals who fold, either they're too confident, they trip up, etc. Recently some guy killed his sugar-momma in Fla, then took her car and drive it cross country to Seattle and along the way used her CC. He gave it all away in the jail interview.