Generally, a voluntary confession to police isn't immediately illegal, but its use in a trial is a complex matter. The essential factor is whether it was obtained properly. Officers must adhere to specific procedures, https://panchanandshaw.com/blog/contempt-notice-explained/