Alternator painting

Had to replace my alternator with a rebuilt one. Before installing it can I paint the outside with some rattlecan clear to help keep it from oxidizing like the old one did? Would overspray in the exposed inside parts hurt anything? Looks like the exposed windings are already coated with something.