1999 Non VVT-i to 2001/2002 VVT-i?

So, I’ve recently had a 1999 Corolla with a manual transmission skip timing and stop operating. I’ve decided it’s time for a new engine.

I’ve looked around for JDM 1ZZ-FE engines and seen that most of them have the VVT-i, from the later model years. Do these engines plug in and work with the 1999 ECU and vehicle? I’d like to run one of the newer engines on my older car if possible as the extra power would be nice. Also, is there a difference between the engines on the automatic and manual models? Sorry if this has been asked before but I’ve scoured the web and haven’t found much information on the subject.
Thanks, y’all!