Well, yes and no. Yes, they are both 1.5-litre Dual VVT-i engine from the NR engine family and they are both made in the same Daihatsu Perodua Engine Manufacturing plant in Sendayan Techvalley in Negeri Sembilan.
Wikipedia will tell you otherwise, saying that the Daihatsu's 2NR-VE is an steel block while the Toyota's 2NR-FE is an aluminum block. This is incorrect. Both engines are now aluminum blocks and a simple inspection under the hood will confirm it. Both the 2NR-VE and 2NR-FE have the same 1,496 cc displacement.
Perodua's own specifications sheet confirms that the Myvi uses a 2NR-VE engine and its an aluminum block, again contrary to Wikipedia entries.
However, the two engines horsepower figures differ slightly. The 2NR-FE produces 107 PS and 140 Nm of torque while the 2NR-VE, depending on exact model, produces 103 PS and 136 Nm of torque.
Also, the 2NR-FE is typically mated to a continuously variable transmission (CVT) whereas the 2NR-VE pairs with a conventional 4-speed automatic transmission.
From what we can gather and for all intents and purposes, they are the same engine albeit with different tuning paired to a different transmission. Bet the Myvi looks like a steal now next to the Yaris right? Trust us though, the refinement of the Yaris is on another level compared to the Myvi.