Can identical twins have different sexes?

No. By definition, identical twins are the same sex.