But will there be enough new jobs? Will those jobs be in the communities affected most by automation? Will those jobs be suitable for the people put out of work?
Will the millions of truck drivers, truck stop workers, and millions of people living in small highway towns that rely on those truck drivers for their local economy just move to silicon valley and become software engineers? This is not a distant reality, there are already self driving trucks on the road. For now they still have a driver inside making sure everything works, but as soon as they are confident they can run without a driver it will become the standard faster than you can say "unemployment"
What about millions of retail workers?
Millions of telemarketers?
Delivery workers?
Ironically, it is the traditionally "white collar" jobs that will go first. Accountants, HR, customer service, analysts, even some salespeople will see significant downsizing in their field as AI makes their jobs more efficient. Mechanics, electricians, plumbers, and other trades are a bit too mechanically complex at the moment for robots to handle not to mention the complicated problem solving needed.