Generally, a voluntary admission to officers isn't automatically unlawful, but its use in a trial is a tricky matter. The vital factor is whether it was obtained fairly. Police must adhere to specific rules, including https://panchanandshaw.com/blog/contested-divorce-vs-mutual-divorce/