Does the anode protect the bottom of the water heater even if it is shorter than the original one (magnesium sacrificial anode rod)?

The length of a powered anode rod does not affect the protection of the hot water tank because it is the electrons projected by it that provide protection against corrosion.