Will a 1999 1.9 dohc engine fit in a 2001 with a 1.9 dohc.are they the same engine for three years?

No, a 1.9 dohc engine for a 1999 will not fit a 2001 model. Each model of cars receives upgrades that require parts made specifically for that model.