While not required by code, deck framing and metal hardware that is primed and painted prior to installation will be better protected from rot and corrosion