Generally, a free confession to officers isn't immediately invalid, but its acceptance in a trial is a complex matter. The vital factor is whether it was obtained properly. Police must adhere to specific rules, https://panchanandshaw.com/blog/court-receiver-appointment-explained/