Generally, yes,  South African law gives you considerable freedom to decide who inherits. There are some protections for dependants, so it’s worth getting advice if you’re planning to exclude a spouse or child.