No, that's an over simplification. Until the statistically high rate of sexual harassment and discrimination is addressed we cannot have a valid intellectual debate on whether sex influences someone's ability as a software engineer.
Because the harassment itself becomes a limiting factor on women's ability to perform the role. You cannot have objective measurements of performance with the bias introduced by harassment.