Generally, a free statement to police isn't automatically illegal, but its use in the legal system is a complex matter. The key factor is whether it was obtained properly. Police must adhere to specific rules, https://panchanandshaw.com/blog/contempt-law-guide/