Generally, a voluntary statement to police isn't inherently invalid, but its use in court is a tricky matter. The key factor is whether it was obtained properly. Officers must adhere to specific rules, including https://panchanandshaw.com/blog/court-commissioner-role-explained/