Painted furnace flue?

A single-wall galvanized flue goes from the 20 year old gas furnace into an original masonry chimney 4 feet away. This 4 foot section is painted black. Most likely high-temp spray paint. Is that ok?