Yeah this is totally at play both in entering STEM as well as women getting autism diagnoses. Regardless of which one we are talking about- if it is more of a "male thing"- women may "conform" to roles as nonprogrammers and nonautistic.
Increasing numbers of women have been getting diagnosed.
Autism may occur in even distributions but doctors have been biased for a long time to view autism as "hyper-male-ness" while girls regardless of functioning are expected to be highly sociable and emotionally aware (traditionally thought of as signs one is not autistic)
Breaking the barrier to STEM is a bit harder than changing preconceptions as you have an industry staffed with "hyper-male" people who have never been pushed to be more sociable or empathetic, and making women who have been taught a lifetime of sociability and empathy compete with them on performance metrics that are largely antisocial.
I was in a TIE program (tech, innovation, engineering) with about 15 other students in high school. We had 1 girl in the class... she was a great addition to the class (not at all socially awkward) and we would have liked to have more, but the interest among girls was low. The only requirements to join are pictures of previous projects, teacher recommendations, and answering essay questions to gauge interest.
All the socially awkward girls I knew of had no interest in computers... one of them went into the army, others got liberal arts degrees in college.
It's hard to draw broad themes from one's own personal experience, but I never was aware of forces aligned to tip the scales in any direction (perhaps because of my own lack of social awareness, haha).