Indeed
I've working at companies where my fellow developers were primarily male, and company where they were primarily female (where I work right now is 60% female). My experience has been that the higher percentage of women there are, the more pleasant and productive the work environment is.
My hypothesis is that it's because when you get workforce with a critical mass of women in it, it tends to make those odious "brogrammers" less likely to work there.