Yes, but Gemini and Apollo were 50+ years ago. Airlocks are likely safer for everyone since ISS and shuttle spacewalks all used them. I think the ISS one also allows prebreathing in the hours before spacewalks to minimize chances of the bends.
And good point about hardening the electronics and equipment. That has to be a requirement regardless I guess since a depressurization could happen on any flight. But depressurizing then repressurizing them during flight increases the risk of something happening compared to not doing it.
I was thinking outside; external module. Apollo could “store” external modules for launch in the fairing, then dock with them in space (ie, moon lander/moon ascent). That’s enormously complex of course though.