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.