Exactly so. The lesson there is never talk to the police or a Federal agent. There’s a great law school lecture on that subject on YouTube.
That’s why it’s always good to seek legal counsel.