Essentially what you're asking is "is it possible to be well off financially?". For that, you're going to want to build a good career.
Study hard, work hard, don't live above your means, and you'll get the money to do what you want.
Being trans isn't a life killer - it's just another annoying set of bills to pay

.
Personally, I went about my career "backwards" compared to most people here.
I did my name change and started T while I was a broke student (made possible by a good public healthcare system, a very cheap shrink, and living off cheap instant ramen... literally! My pre-T blood tests came back saying I was anemic!

).
Then I went and started a good career in a new city with enough to my transition done to pass as myself without a problem.
Things were really tough when I was a broke student, but in the end it worked out really well. I started my career with an almost clean slate.
If you can find a way to afford it, and you're of a young age (as in, you don't have history already), changing as much as possible before you start a long term career is something to seriously consider. For one, you never have to worry about "coming out" at work and losing your paycheck over it - and that buys you a fair bit of financial stability.