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.
Yes ofcourse gambling can give lessons for us, When you win its a good thing to help your family needs, but if you loose you can't get back the time that you have much money, lesson learnd dont waste you money for doing gambling only, many people that addicted in gambling are now broken families because of loosing much money.