Sure, there is crime. But there is crime everywhere. I compared Cape Town with a similar sized city in the USA, Memphis TN, Baltimore MD and found the crime rate comparable. Like most cities, there see neighborhoods you should avoid and some local knowledge will bring down the risk of being impacted by crime significantly.