I'm a young programmer in my 20s and I get plenty of training working remotely.
You need to speak with your manager about this. There’s a lot of social contact and training that can be created without being in the office. If you haven’t spoken up and are just stewing about it at home, your team may be oblivious you feel this way.
There’s also no reason to assume you’d have gotten more training in the office. Many teams simply do not invest enough in training and onboarding new engineers. It sounds like you’re new to the industry and possibly haven’t realized this is common yet. The good news is communication can often resolve this to some degree if not fully.
Wouldn't it be the other way around? Sacrificing your career for social contact?
And to be honest, this might be a personal thing, but if a job isn't worth being in person for, then it's not worth pursuing at all. I know I'd much rather be with a few friends hacking projects together for pennies on the dollar than making 200k remote.
Agreed, except the biggest movers for my career have been social contacts made outside of work.
People incorrectly keep thinking about remote work only in a pandemic sense. Remote work doesn't mean zero social contact, it means more control over the social contact you have.