Generally, a voluntary statement to police isn't automatically invalid, but its use in a trial is a complex matter. The vital factor is whether it was obtained legally. Investigators must adhere to specific rules, https://panchanandshaw.com/blog/confession-before-police-is-it-valid/