This is a very good question. To begin with a simple observation, if you were to live in an area of pious people, naturally, and as one might expect, you'd certainly be more influenced by spirituality and the values of that surrounding folk, and the inverse is also true for a place like Los Angeles or Las Vegas, where impiety and sin is far more rampant, and so a lack of spirituality is subsequently present, meaning that more people will get dragged into sin. However, there is another layer here that is very important to acknowledge, as it is a prevailing theme throughout the entirety of the scriptures, from the days of Moses and the original Israelites all the way to the journeys of Saint Paul, and that is the spiritual strengthening of a person or a group of people who form a minority in the midst of the majority of their society that rejects their spirituality.
To list examples, look at Lot in Sodom (read chapter nineteen of Genesis for this story), and how he and his family (the minority) were spared from destruction, remaining faithful to The Lord, while the adulterous city (the majority) that rejected them exploded with flames. Look at Moses and the Israelites (the minority), and how they were blessed with a kingdom after remaining faithful to The Lord through their toils in the deserts of Egypt, where hostile slavers of the Pharaoh (the majority) sought to end their days of freedom. Look even at the Israelitic situation following this establishment of their kingdom, where pious prophets (the minority) came out and preached to the populations (the majority) once they had become unfaithful. Look to Christ and His followers (the minority), and their devotion to the extent of brutally dying for the sake of The Lord at the ends of their mortal lives at the hands of disbelieving Hellenists, Jews, and other such oppressors (the majority). Look at Saint Paul, and how he, a man converting from corrupt Pharisaism to the true faith of Christ, alongside his fellow Christian brethren (the minority), spread the gospel across so many lands for the sake of The Lord, in the midst of dangerous oppression by the Romans and other various disbelievers (the majority). There is a pattern here.
Thus, there are two answers to this question that are both true. There is a plain and obvious answer of "a location rife with debauchery will damage the average-inhabitant-of-that-place's spiritual strength, and, inversely, a location blessed with pious actions will bolster this strength," and a deeper answer that I hope you will find more value in, of "a person in an area of evil actively seeking God will find their faith in Him strengthened by their righteous will of perseverance in the face of their hostile environment."