That's only really applicable to evidence in criminal cases obtained by the government. No such doctrine exists for civil cases, for instance. It doesn't even bar the government from using evidence that others have collected illegally of their own volition.