No it started in R&D as a new Mario game. They wanted to explore vertical scrolling. Similar to how Breath of the Wild was prototyped as a Zelda 1 game. They needed something for the festival so they used it for that instead of Mario.
That’s why they chose to use it for Mario 2 USA. It was at it’s core a new Mario game anyways.