Yes that's true. You need to stabilize the rust before painting, with phosphoric acid. This is sold under many product names, rust gone, naval jelly etc. but the active ingredient is phosphoric acid. You can find it in most any automotive supply store. The phosphoric acid through a chemical reaction, changes the rust (iron oxide) to a stable inert compound called iron phosphate. You can then safely paint it.