Yes. Compensation is set forth in EC 261/2004. It is based on having met a threshold delay time measured at the final ticketed destination, e.g. JNB, and far-exceeded at 8 hours and the distance covered by the flight. It tops out as a Type III flight at EUR 600.
Class of service is irrelevant.