The Mega has a 3.3volt/150mA supply, so in theory, yes.
Connecing the 5volt pin of the Mega to the 5volt (V-in) pin of the NodeMCU should be safer though. But why do you want to connect two processors together (with all the issues that come with it).
Leo..