Do women receive more than 40% of degrees in CS (or CS, maths, engineering, physics which I think are the other degrees likely to feed into a programming job)? My estimate is that the figure is more likely to be 5-20%.
Women receive 40-45% of the degrees in math and statistics, but less than 20% of degrees in CS. The percentage of CS degrees degrees awarded to women is down from 30% in the mid 1990s.
There is no rational "biological" explanation for why women would somehow be "biologically" averse to CS while pursuing degrees in a closely related field at much higher numbers. There is no "biological" explanation why women's interest in CS would drop dramatically over just a few decades.