Necessarily, the robot can be whatever and the spirit can remain their gender from what they were before they died, so technically it's like Charlie (a girl) possessing the Puppet which was said to be a boy (If I remember correctly, it's been a while).