Now, if you want to go to CS just to get a programming job at some company and you are doing this for money, I would indeed ask you to reevaluate. If you like programming as a hobby, a good way to kill the passion is to turn it into a boring 9/5 job. Physics and engineering may use programming as a tool and that may be more interesting to you?
That said, LLMs will not make a dent anytime soon. Yes they will plagiarize code and spit it out in a way that's similar to what you have requested – and for this very reason, have been banned at my Fortune company (Intellectual property is tricky). But they have no reasoning capabilities, there's still demand for solving actual problems. These days, writing code is a fraction of what I do, a lot of work goes into syncing with other teams and figuring out _what to write_. When I actually sit down to write code, that usually takes just a few days. That pales in comparison to all the architecture and coordination work that had to happen to reach that point.
Even if we assume that computers will write the code for us and it's no problem, that would only save a few days for most of my tasks. And any task where it would save more than that probably isn't worth my salary at all.
This might heavily affect pure programming outsourcing companies that only write code and require detailed specifications. That might be a true concern for them. Everything else will just adapt to the use of a new tool.
Like you mentioned, few people program in assembly these days (although some still tweak and plenty more read assembly) but I don't really see anyone complaining about that.