Right, but that's because "upgrading" actually means destroying the old unit and creating a new unit with the same name, promotions, experience, etc. Embarking and disembarking may or may not do the same; I haven't checked too closely.
Obviously, this doesn't apply to cities.