Welcome to the forum.
In simple terms, yes.
There are many detail differences, (exhaust, throttle cable, cooling hoses, turbo etc) so preferably try to get a complete td25 vehicle otherwise you will spend ages/money with ancillary parts.
An old Terrano with a TD27 is a better swap by the way.