Great advice especially if you are early in your career. Keep learning and increasing your salary. If you stay at one place too long you will stop learning and your salary will reflect this and stall out as well.
https://www.cnbc.com/amp/2022/08/11/millennial-recruiter-how-to-use-job-hopping-to-make-more-money.html