YES!
Cape Town Municipality allows for up to 5, as long as certain conditions are met.
Check your local laws, just because no one does it, doesn’t mean that they can’t.
But make sure that you are VERY friendly with your neighbours, if they moan about your dogs & chickens, they are going to have a field day with goats!
This is where you can find the document – I don’t seem to be able to post a link.
& this is the pdf
Keeping of Animals and Poultry for the City of Cape Town – approved on 28 September 2005
Do you research
Prepare well
Fence in your trees
Get goats!