This actually happened fairly recently with Spiro Agnew, Richard Nixon’s vice president, resigned from office. Richard Nixon then appointed Gerald Ford as Agnew’s replacement.
So if Hillary replaced Biden then she could take out Obama and become president without being elected.