The ban wasn't a ban on home computers but rather a ban on foreign imports.
One could argue that it spawned the creativity of domestic creatives who built the home computer anyway with the available resources.
I'm not personally favouring protectionism of this sort but we have to be fair to the thing we're criticizing and there is plenty to say about the Socialist Federal Republic of Yugoslavia without having to resort to claims that they wanted to ban home computers for the sake of it