generally, I think they are the same.
in some special situation, the first sentence can have a little distinctive feeling from the other.
I studied for being an English teacher ( but I haven't got the object. or I have lots of objects, and to be an english teacher was one of them)
I studied to be an English teacher ( and I've been an english teacher. (achieved my goals)