The answer to your question is it depends, and is one of the big things that has people worried about AI and automation rapidly improving over time. If things like wealth redistribution don't occur in a highly automated society you end up with big problems really quick.