Exactly, the only reason people fear automation is due to capitalist relations where people are forced to work in order to live because the purpose of work is to produce further wealth for people who own capital.
However, this problem doesn’t exist in a socialist society where the purpose of work is to produce things everyone needs. If production of these things can be automated then it just means less work and more free time for the people.