I work almost entirely remote today and definitely prefer it. (The people I work with are scattered all over the place anyway.)
But I can't really imagine how I would have done well working remotely towards the beginning of my career. It was a different time with far fewer communication tools but, even taking that out, it would have been very difficult both socially and in terms of work discipline.
I’ve worked with new hires that literally take entire days off and give excuses why they were unreachable. Sadly they are just shuffled around the company instead of disciplined but that’s another topic. But I figure in that case, they were probably not so great workers in-office either.