could electricity "leak" in a home through badly ground pipes copper or other metal (?)

hypothetical~ if my copper pipes were not grounded properly causing corrosion to the water heater would that in any way use more electricity increasing the monthly kilowatt usage?

just wondering.