It really depends on your interests. If you like math, sure, go for it. You can have a good career in IT. But if you're not absolutely sure, I wouldn't do it. I switched my major from CS to math, failed, and switched back to CS. I don't regret it, but pure math was a bit too much for me. But there are lots of people who graduate in math. So it really depends on what you like.