Yes, but. Most real world engineers could also be software engineers too. I studied Mechanical Engineering and had to learn Fortran and Pascal as part of my undergrad. What I find strange is that some of the best software engineers are not as strong at Math as you would expect. Of course there are exceptions (and no doubt they are all here on HN!). So while real world engineers can cross the divide to become software…
I think it’s hard to switch jobs in all cases and I doubt any universal rule applies. Software engineering is more than writing Pascal. It’s like saying you can be a mechanical engineer because you learned physics in college.
Coding and using coding tools is a bump in the road and then eventually that all fades into the background and you’re thinking just in terms of systems again.