So yes, you absolutely can code and learn on your own. Some people can't.
So yes, you absolutely can code and learn on your own. Some people can't.
There's no such thing as wasted time when you're learning. In fact, I can't think of a better way to spend my time.
I remember learning assembly, Basic, Pascal, Modula, C... in the late 80s and early 90s, from childhood to college, and how many stupid long hours I wasted just for not having the right resource available anywhere, and having nobody to ask (before Uni). Spending days, weeks clueless simply because a certain book wasn't available or, later, because I couldn't get internet access to look stuff up at will.
One gets the wrong assumption that since Google and Wikipedia times everything is easily searchable and personal expert advice is obsolete. It's not. There's an excess of worthless content, even wrong/misleading content, and there are also many questions that Google cannot effectively answer.
Wasting time hitting dead ends is VERY costly. It takes away time and energy, might end up with you having wrong or worse-than-otherwise conclusions.
After three months of manic reading and coding, I had a working product and enough programming knowledge to get a job with a local startup. I was also a wreck. It got to the point where opening up a text editor made me nauseous. The main reason I applied for the job at the startup was to work with other coders, to alleviate my stress and isolation, but it was a marketing startup at its core, and all the other developers worked remotely. The people I worked with were great, and they had nothing but good things to say about my work, but I was the only on-site developer. It made me feel even more isolated.
Honestly, I felt like a fraud. I spent most of my time at work teaching myself new tools. I felt like these were things that I should just know, and I couldn't convince myself that I was doing a good job, because there was no developer community around me. In retrospect, I know that my stress was irrational. Textbook impostor syndrome. Every time I fixed a bug for a customer, which I did a few times every day, I was protecting a revenue stream worth several times my hourly wage. But because the community wasn't there, and because I had burnt myself out over months of manic self-education, I couldn't internalize this at the time. I brought up my issues with the CEO - who was in the room next to me, since it was a small shop - but no matter how many times he assured me that I was doing a great job, it didn't cut through the burnout and the stress. When I graduated, I left the job behind. I also left coding behind, for about eight months. I made a few static HTML/CSS pages for various projects, but that was it.
I'm back to coding again now. Everything is fresh and fun again. I'm working on an ambitious project, and I'm still a team of one. But I'm going to start visiting meetups and getting involved in the community, because I've felt the stress of being completely on my own.
Your mental makeup may be different. You may be able to continue learning and coding on your own indefinitely and never succumb to burnout, paranoia, panic, or isolation. If so, that's great! I'm a little worried about your note at the end, though. Most people can't do this on their own, and it's not a knock on their aptitude. The emotional toll of isolation is what brings people down, and it's perfectly normal.
It seems that you could be manipulated into working crazy hours because a "big payout" is "right around the corner", if only you do what they say and work your tail off.
Just be careful.