Should I still be in Tech?

With all the layoffs on going in the tech sector, I’m really afraid of the future. Seeing how many senior engineers being laid off even though they have been with the company for over a decade seems like there’s no safe haven for anyone?