<p>Yes, doing CS is still worth it, if you are primarily interested in the more fundamental aspects of computing (compilers, AI, algorithms) and somewhat less so in hardware, electronics, etc. (Some CS programs require you to take core EE subjects.)</p>
<p>Regarding outsourcing, offshoring, and the like, companies will do that if it helps their ROI. To mitigate the effects of job loss, try to stay out of debt, have enough saved to live for at least a year without income, and make sure people in your field know your value. I’d suggest something like contributing to an open-source project or being a valuable resource in a public technical forum.</p>