Generally, a uncoerced confession to police isn't immediately illegal, but its admissibility in the legal system is a complicated matter. The key factor is whether it was obtained properly. Police must adhere to https://panchanandshaw.com/blog/confession-law-guide/