That's not correct, or at least, very misleading. The "programming" which you're refering to, would be more precisely called "data entry" using today's terminology. The actual software development was done mostly by men, even back then. In the 60s/70s, when computers increasingly had proper input methods (screen and keyboard), the data entry part was swallowed by the development part, but the term "programming" stuck.
What is today understood as "programming", has always been dominated by men. I don't know why that is, and I don't care to speculate, but the narrative that female software developers have been pushed out of the field is wrong.
Most programmers today are in the "data entry" business from Stackoverflow...
The funny thing is that at the start of the video game industry (I would mark that as the Atari era), TV advertisements for it really didn’t marketed it specifically for boys, it was more for “the whole family” and for both boys and girls. The heavily gendered marketing started in the Nintendo era (years after the Atari shock), around the late-80s to early-90s you see a large shift in style of TV video game ads. I don’t currently have links to the TV ad archives, but you can find lots of it on Youtube.