The risk of job losses

Technology is changing the modus operandi of most companies and automation is becoming a common trend across the globe. Shouldn't employees now start thinking of diversification considering that some occupations may become obsolete in the next few years? What ought to be the next move in the event that there are many job cuts in future?