It is! Look up "impressed current cathodic protection": you apply a small DC voltage to, say, pipelines to prevent corrosion.