Do what you like, and for most normal humans (TM) moving to managerial position is moving to worse job while paid marginally better. More stress, far less interesting creative work and more baby-sitting/micro-managing incompetent folks, chasing other teams, processes, politics etc (if you don't do that you are not really a manager in any bigger company).
I am software dev for 20 years, my current full time employment net salary is over 20x compared to my first full time employment while doing largely the same job. You don't get good increases by moving up the ladder, you get it by switching companies and negotiating hard. That's it for the money part.