If you live in New York City in your twenties, taking the subway to work every day, and then move to, say, suburban Silicon Valley–where 74% of commuters drive to work alone–you’ll be a little more likely to walk or take public transit than your Californian coworkers.

In a recent study, researchers tested whether past experience with good public transit makes a difference when someone moves to a place where the nearest bus stop might be inconveniently located or a local subway line might not exist. The answer: it does, and that past experience can have as much impact on someone’s choice of commute as transit quality in a new neighborhood.

Studies on transit behavior usually focus on urban design–if planners create sprawling neighborhoods without sidewalks or access to nearby public transportation, people will obviously be more likely to drive. The new study looks at social factors instead.

“We wanted to look at some of the ways that our behavior is nudged that aren’t specifically or directly about the environment,” study co-author Michael Smart, an assistant professor of planning and public policy at Rutgers University, tells Fast Company. The study focuses on the effect of growing up in a transit-rich city, or working there as a young adult; in other studies, the researchers are considering factors like the influence of family and friends.

“We can’t go to the past and make everyone grow up in New York City, but some of these social factors might be easier ways to nudge people into traveling in more sustainable ways than rebuilding 85% of America overnight and making it more walkable and transit-friendly,” he says.

Using a survey that has been tracking thousands of families since 1968 (and includes data on car ownership and how much money people spend on transit), and separate data sets on transit service, the researchers looked at the effects of transit “exposure.”

If you grow up in a city with good public transportation, and later move, you have a better chance of using public transit in another city later. You’re also a little less likely to own a car. If you live in a city with good public transit in your twenties or thirties before moving, the effects are even stronger.