Generally speaking... yes (pending it's factory paint and it wasn't 'touched up' by a dealership with something other than catylized paint).... BUT, why go straight to a compound?
Depending on the severity, you may be able to utilize something less abrasive and achieve better results.