It is likely that male directors portray women characters differnt from how women directors portray women characters, simply because it'is harder for them to relate to the characters. But there are also othert facteors that could make a male director understand a female character more and relate to them better than even than female directors due to perhaps persomnal experience. So yes and no. Sorry I'm giving a mixed answer. Is there any specific examples that are making you pose this question?
"what if the writer and director are the same?"
if this is true than it is the writing not the directing that is formulating this specific depiction of women characters.