Yes, but you have to replace the sacrificial anode every so often.
https://en.wikipedia.org/wiki/Galvanic_anode
Like the plate of food on the grass for the bees at the barbecue
Like the plate of food on the grass for the bees at the barbecue