Earlier quoted context omitted.
Engineering is in higher aggregate demand (there are more open eng roles as the ratio of Engineers:PMs is high, and the minimum qualification bar to be an engineer is higher ie you need to know how to code at a bare minimum. You also generally speaking can always add more engineers to a mature tech product as they can fix bugs, tech debt, etc and help the business overall). As a result, my personal anecdotal observat…
This ++. I've been working with engineers all my life, and a lot more senior engineers. I've seen engineering careers plateau after a certain point - plateau at either architect level positions or worse, as a senior software engineer. Longer term, a PM level position opens lot many doors (and especially, if you have an software engineering background).
My advice would be to determine what is driving you to want to shift from Engineer => PM. If it's purely money, there are alternatives that don't require leaving coding (job hopping wisely, moving into certain types of management tracks, consulting on the side, switching into industries that pay SWEs ludicrous salaries such as quant finance if you can). Similarly if you're looking for more influence/reputation – all of that can be had as an engineer if you're somewhat thoughtful about your path. However – if you're looking to transition out of coding because you're more interested in the business / sales / working with people (which was my story) then it's a great switch.
Good luck!