An engine swap or engine replacement will not reset the odometer as the odometer doesn’t just measure the engine but all of the components of the car. In fact, it’s illegal to reset the odometer as it would not accurately reflect the age of other parts of the vehicle.