Generally, a voluntary confession to police isn't inherently invalid, but its use in a trial is a complicated matter. The vital factor is whether it was obtained properly. Police must adhere to specific rules, https://panchanandshaw.com/blog/court-law-guide/