Unless they were legally obligated to report you. They can testify in regards to whatever specific topic lead to that.
i’d guess when the patient admits to have committed murder and then the therapist has to report it, right ?
But until fairly recently you could plead the 5th and they couldn’t use it as proof of wrongdoing.
Some rulings that pleading the 5th can be considered cause for a warrant if not directly an admission of guilt.
The past decade or so has also weakened rights in regards to you having to plead the 5th directly, and of course the “War on Terror” led to the Supreme Court more or less saying “No, actually, torture doesn’t count, plus we’re going to ignore that it’s been the official position of America for centuries that Constitutional rights are human rights (for a changing definition of human).”
Taken as a whole the past couple decades have severely reduced the protections the government wants to admit the 5th offers.