Has a president ever made less than a president's salary prior to their election?

Of the president's who've been elected, who, if any, have increased their yearly salary from their prior occupation? Basically has anyone poor ever been elected????