a gear from drivetrain to odometer? lol, definitely not.
and the answer is no. The ECU does contain the mileage, but anyone who has enough skill to replace a cluster can also fake the mileage in the ECU.
People who reprogram mileage on cars can do it so well that the dealer cannot tell its been done (so you can return over-mileage lease cars without penalty)