You would not expect someone taking nursing or pharmacy (actually I think pharmacy requires a lot of memorization rather than math, but that's another matter) to become a software engineer. 

If you want your female students to become software engineers, then THEY NEED TO TAKE THE RIGHT COURSES. Otherwise it is a bit of an uphill climb. 

And in my experience in the IT industry, the people who worked as programmers ("coders" in today-speak) were mostly male. When I got to university, there wasn't anything in particular to stop women from taking the same courses as I did. But mostly they didn't. 

And you'd have to ask them why they didn't because I never did.