I completely disagree, and think work from home (which most of our ancestors did until the industrial revolution) is infinitely better for making and sustaining healthy friendships. There's not 90-120 minutes of commute time sitting alone in a car. There's not the very common occurrences of layoffs and promotions making you directly competing with each other. Instead you've got all that extra time to just spend time with your neighbors and make friendships.
You can choose to work from a co-working space, coffeeshops, libraries, or just stay at home. But instead of getting home exhausted at 6-7pm needing to cook, clean, chores, etc, you can get that stuff done during your lunch break and then pop around to a friend's house by 5:05pm.
It's so much better I can't imagine going back to an office where I'm sitting alone and sad in a cube all day trying to focus while people yammer on the phone right next to me.