Depends if it's surface rust! You will be able to telling it's rot. If it's surface knock it back treat the rust and prime and repaint. If it's rot you will need to cut it out and replace with new...