Yes the TDDI is the better and more reliable engine although you are at risk of the EDC or pump control module failing randomly at any time. You can swap over the EDC module on the pump nowadays rather than having to swap the pump out which saves a fortune. I think the EDC modules are about £250 exchange.
Better though than the TDCI of that era which can have loads more different issues with the electronic injectors, duel mass flywheel, high pressure pump failure non of which the TDDI has.
Granted the TDDI is only 90hp and the TDCI is 115hp but they are still quite nippy but the biggest thing to look for on any old Focus is rust !