Cape Town

Cape Town (Afrikaans: Kaapstad (kpstat); Xhosa: iKapa) is a coastal city in South Africa. It is the capital and primate city of the Western Cape province. It forms part of the City of Cape Town metropolitan municipality.

Is this statement correct "is cape town a capital of south africa"?
yes