You should never paint over rusted metal as it will cause poor adhesion with the paint and lead to flaking. Removing rust and smoothing the surface is vital before painting.