Yes. In 2026, I would argue that Electrical Engineering is a somewhat safer long-term degree than Software Engineering, particularly if your main concern is AI-driven job displacement.
The biggest difference is that AI is increasingly capable of automating routine programming tasks, including writing code, debugging, testing and building relatively simple applications. This could reduce demand for junior software developers and make entry-level positions more competitive. Software engineering isn't disappearing, but the skills companies value are changing.
Electrical Engineering benefits from a different set of structural demands. Electricity grids, renewable energy, semiconductor manufacturing, electric vehicles, robotics, data centres and industrial automation all require physical infrastructure and specialised engineering expertise. These industries cannot be automated simply by generating code. They require hardware design, physical testing, safety validation and real-world implementation.
However, Electrical Engineering isn't immune to AI. AI will increasingly assist with circuit design, simulations, testing and optimisation. The difference is that engineers will still be needed to oversee and validate these systems.
I would particularly recommend specialising in power systems, embedded systems, microelectronics, semiconductor engineering or control systems. These areas combine strong physical-world demand with technical skills that are difficult to replace entirely.
Software Engineering still has significant advantages, including higher remote-work potential, flexibility, lower barriers to entrepreneurship and potentially excellent salaries. Furthermore, AI could increase demand for experienced software engineers who know how to build and manage complex systems.
My verdict: If I were starting university today and prioritised long-term employability, I would slightly favour Electrical Engineering over Software Engineering.