Yep, I don't see why is this a problem, just act professionally, don't be a creep. I have mentored many programmers, both male and female and i have zero problems with either. There are some subtleties in dealing with the fairer sex such as different kind of encouragement, read between the line when they say they are tired, making sure that their understanding is correct etc... but generally it's the same for both sexes: respect them and their personal space.