Not my experience, so please check out the numbers at the schools you are applying to. Comp sci tends to be more gender balanced than other science majors.
Stanford trends very geeky, compared to most Ivies, so I’m not surprised about the balance at their school.
My best friend is a software engineer, and the department is 50-50 men and women, and both genders get flexibility to take time to help with their kids.