Yes, which is not exactly what is going on. If you know how Super Mario Maker is moving enemies and objects between game themes in a quite effortless way? That’s not what Super Mario Advance 4 has done, which I made an experiment to prove:
The Amazing Flyin’ Hammer Brother is using Mario 3’ platform functions which differ completely in how they operate in Mario World and Mario 2, and is used in the game only once, showing that it was programmed just for Advance 4 with Mario 3’s physics completely intact. That is the highest afford made, that I have seen, from Nintendo. It is impossible to just take an enemy’s code and move it between games when they don’t use the same core techniques to function.
I am currently playing Super Mario 3D World!