In general if the only common experience you have with someone is your physical proximity, it's probably not a great opportunity to make friends. If you live in Brooklyn you might go to the same coffeeshop as Margot Robbie... that doesn't mean you're gonna be friends with her or that she'll be friendly if you ask her what book she's reading.
You'll have much better luck attending shared activities around a common interest, where everyone there is expecting to interact with each other.