"I think I made a mistake by deciding to study IT'" is more appropriate don't you think? or "The decision to study IT was not the right move for me"
however, I suspect if your sentence purports the intended idea/serves its purpose? You probably wanted to signify that IT, for you, was a bad decision for higher studies correct?