Yes. it must be determined by chromosomes. XX is female. XY is male and never the Twain shall meet.
They meet all the time!