Can someone still develop the habit of gambling and become an addict even though no one around gambles?
Yes definitely! The impact of one's environment on where he/she currently stays at is significantly relevant to the point that they are mostly exposed to vices. In comparison, a child who is exposed early into reading, etc. is most likely to develop habits that will contribute to his general knowledge, curiosity from the very start. Just like in gambling, a person will most likely focus on other activities if everyone around him is focusing on productivity.
While this solution may be considered helpful, it is not in anyway absolutely effective. The most effective way of treating gambling addiction comes from the gambler himself, when he/she realizes that what they are doing is wrong.