Yes. A much longer answer:
Louis L’Amour, who wrote westerns the way Heinlein wrote s-f juveniles, used to boast that he could write anywhere.
I took this as a challenge and tried to do the same.
I’ve now found that I prefer to spend at least part of my day in a coffee shop (Starbucks) in the company of other people.
I used to use a library but they don’t serve cool coffee.
The energy of people around, the ability to take a quick reality break, are both very useful for me.
However, some conversations and the Starbucks muzak can be too much for me, so I usually slip on my own headphones and listen to something instrumental, mostly Tangerine Dream (occasionally, Fresh Aire).