In most cases the courses are fine, but the examination probably isn't testing anything useful if it can be cheated with tools like ChatGPT. For example any maths test which only tests students on problems which are easily solvable by a calculator isn't testing any skill of real world use. But this doesn't mean maths itself isn't valuable, just that the test isn't.
In some cases like programmers and writers, ChatGPT might actually be eroding the value the current curriculum. For example, I'm not sure if there's much value in learning things like basic SQL queries anymore which was something I had to learn when studying computer science. ChatGPT is great at writing SQL queries if you're able to tell it exactly what you need.