The main issue would be the bond to the surface of the epoxy would only be as strong as the bond of the paint to the surface, and paint bonds nowhere near as well as epoxy. You'd want to sand off any paint/primer first, then apply epoxy to that surface.