The Legend of Zelda: Ocarina of Time flopped commercially and ended up being the last game in the Zelda series.
The opposite is true, as the game sold very well, and many more Zelda games have been made since.