It is not that simple.
As NPR's Morning Editon has reported:  
In the beginning, the number of women studying computer science was equal to men until -- about 1984, when personal computers proliferated in households. You could play pong or simple games, maybe do some word processing. These toys were marketed almost entirely to men and boys. 
This idea that computers are for boys became a narrative.
"Movies like Weird Science, Revenge of the Nerds and War Games all came out in the '80s. And the plot summaries are almost interchangeable: awkward geek boy genius uses tech savvy to triumph over adversity and win the girl."
In the 1990s, researcher Jane Margolis found families were much more likely to buy computers for boys than for girls — even when their girls were really interested in computers. This gave boys a big advantage at university.
The guys got a head start. Now, like true libertarians, some believe their success
is due to biology.
I am a guy, and I doubt it.