It seems grammatically fine. The sematics may be questionable, depending on the context. I would have thought: The more he earned , the more he needed to earn.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.