A long time ago you could do either hardware or software related jobs with a CS degree. These days it’s mostly software development.
I know lots of people with CS degrees that left the field after working only 10 or so years because they got sick of it. Many of them went into real estate-related businesses. I don’t personally know anyone with a CS degree that hasn’t been able to find a programming job out of college if they looked hard enough and were willing to move to where the jobs were, though I’m sure those folks exist.