I doubt it will rust if its high quality metal, if anything your flex pipe will go long before the front pipe rusts. But if you do paint it, remember, the key to a good paint job is good prep. That means sanding the pipe down thouroughly, and degreasing.
Ive botched many a paint jobs by not doing that.