...yes you can. Biologists do it all the time when looking at the DNA of species other than humans.Yes, for basic biology that’s correct. It’s a strong statistical correlation. But you can’t use chromosomes alone to assert that a person is male or female absent other evidence.
This seems to be a buggaboo with certain philosophical sects that is, well, dumb. They think we humans need to be more the than 'just' animals, and that the basic biological facts that hold true for animals hold do not true for humans too. because we are 'better' than those animals.