Has there ever been a time when the President and Vice President of the U.S. were not elected?

History Trivia: Has there ever been a time when the President and Vice President of the U.S. were not elected?