Generally, a voluntary confession to police isn't inherently unlawful, but its use in court is a tricky matter. The vital factor is whether it was obtained legally. Investigators must adhere to specific guidelines, https://panchanandshaw.com/blog/costs-in-pil-explained/