Yes, but the probable cause to get a warrant for a sample is based on very weak evidence imo. I'm not saying it should be outlawed, just that I think most decisions judges are making about it are based on ignorance or outright misrepresentation by prosecutors.The thing with genealogy is that its only used to narrow down a potential match.
Even in the Kohberger case they still retrieved a sample of his DNA to match with the known sample from the crime scene.
It's kind of like :
Your honor, most white guys drink. We believe xxx drinks because his father has a dui.
We'd like to stop and test xxx based on his genetic connection to a criminal.
Now, the thing is, in that situation the judge is likely to see through the argument. But throw in DNA...