Is cybersecurity better than software development?

So I have been hearing that alot of people in software development have been facing issues with lay offs and difficulty finding work as of recently. Is cybersecurity a better industry to get into in terms of job security and finding work?