Switching jobs for more pay is a valid move when you are just starting out. Just make certain you aren't jumping from the bottom rung in one company to the bottom rung in another.
My career is about over, but I also jumped companies. My first jump was for a 60% increase in salary. My 2nd was for 40%.
My last was for job security at State Farm and to lock in another stream of income in the form of a pension.