Of course, now that I can't get to a co-working space, I had to get way better at planning and finding good places. Now I don't waste much time.
For that matter, I think I am more productive (for now) because I can't chit-chat and get distracted as I would when I'm around people I know. All of our work is offsite and online right now, so no productivity is wasted.
The biggest trick is, if it's a 3hr commute there and back to your office (plus settling in time) you have to weight it each time whether it's worth the trip or not. But I hit the coffee shop every morning, like it's my office, and gain 2.5hrs. You just can't slack off.
I wouldn't suggest doing it forever, but if you're going to do it, that's how.