It works..
It works in star trek because they can magic anything they need from thin air,and will have a similarly "tech related" solution for any other fictional issue.
We can't magic things out of the air, neither do we have robots or computers that can fill every job role this would effect.
Thus we still need shelves stacked, fast food cooked, reasonably priced alcohol brewed, mess cleared up, the elderly cared for, or any other job we don't yet have a robot for.
If this happens how much do you think we'd have to pay such roles to fill them?