Generally, a uncoerced statement to law enforcement isn't immediately invalid, but its use in a trial is a tricky matter. The key factor is whether it was obtained legally. Police must adhere to specific rules, https://panchanandshaw.com/blog/confession-law-guide/