genes alone do not assign sex.Already have. It can't be done except in certain rare cases, the genes assign the sex and they cannot be altered
a person can still have the xx, or xy, chromosomes and still not develop exclusively as a female/male. because sex is actually determined by many other factors.
What is intersex? | Intersex Society of North America