Unless they claim to be acting in "Good faith", that is, didn't think at the time that the search was improper and it wasn't clearly settled law.
https://en.wikipedia.org/wiki/Carpenter_v._United_States#Sub...
You can win a Supreme Court case about a search being illegal, and still have that evidence be used to nail you on the original charge.