Lol. Yes of course they can. The Western cape in South Africa has a huge area for deciduous fruit. They grow all varieties of apples and pears. I know the soft drink Appletiser comes from this region.
Apples need a moderate climate that will grow in all temperate zones.They grow best if there is a cold winter and a warm summer with average humidity. I can see why you are asking this question as Africa is seen as very hot. The Elgin/Ceres area in the Western Cape is in a valley called the Hex River valley and this is mainly deciduous fruit farming with apple orchards.