Yes, employers should retrain employees and give them a chance to move to another position within the company. They can't just let workers end up jobless. Ultimately, society will have to take care of those people who are out of work.
Employers have a duty to their employees. It's not okay to toss employees aside to reap the advantages of new technologies while society pays the price.