Here in the US, there have been many people switching from IT to some other field. During the whole dot com boom, many fly by night people and schools pushed out plenty of "make millions" kind of IT workers. But as the years have passed and the dot com bust came and went, many people left IT because it no longer was the "cool" thing and it wasn't the "make a million bucks by the time your 30" career.
People forget many IT workers spent 100+ hours per week working during the dot com boom and the Y2K nightmare.
Many of the IT workers who became millionaires were really never IT workers, they just were sales people selling IT. And after people learned that IT is a lot of documentation, staring at a computer screen, and thinking, many left for other fields, sectors, careers.
It's just like anything in life. Just cause you have an IT degree and IT experience, doesn't really mean you can't go and become a saleperson, a lawyer, a doctor, a nurse, a businessperson, a janitor, a manager, a journalist, a wall street broker, a real estate agent, a dietitian, a statisticain, or whatever.. Plenty of people in every field have switched fields in their career. And here in the US, many college grads never work in the field they expected or even close to what their major was.
It all depends on what you want to do and what you don't want to do. If you are burned out of programming, developing, or whatever, just remember a simple fact of life, "the
grass isn't always greener on the other side."
If you want to be a lawyer, go for it and do it. But don't think if you worked 80+ hours a week as a developer or programmer or consultant or whatever in IT and are burnt out from it and hate your managers and your job, don't assume becoming whatever will suddenly generate better managers, better roles, and so on. If you know you want to study and do law, then do it. Just don't do it or do whatever just cause your burned out from one thing and hope this other thing sounds better.
What do you want to do?