Yes of course can give you a lot of lessons in life, in terms of financial losses that can teach you how to value money in a matter of time. Because thar time you are engaged in gambling is you are not thinking to earn money for your family and the only thing you aim is to win and not lossing. If we generally analyze the whole idea here, you didn't expect to loss and yet you really loss because gambling always make's you loss rathen than winning. Having a bigger lossea that cannot be recovered by playing again will certainly give you a nice lessons that will also give you the principle of not joining gambling bets anymore; life will be change as well.
Gambling can give us lesson in our life ,not only for not joining in gambling site's but to being compared that in our self is like a game's that sometimes we win and sometimes we loss,or sometimes we get the lucky prize that we want in our life.in my own knowledge gambling is not a curse or virus that you must prevent to take over into your life,because for me gambling is a part of enjoyment in life with a limitation and obligation to yourself to not become addicted.