Yes, for sure. Because actually, gambling is at risk of experiencing addiction to gambling. Meanwhile, it will be very difficult to recover when someone is already addicted to gambling, in fact many people have lost their assets and also their families because they are already addicted to gambling, without any desire to change and do treatment for gambling addiction.
Avoiding gambling addicts is something that must be done, so just gamble naturally, make sure we can control ourselves in gambling, not gambling that controls us. Because after all, gambling is very risky, maybe this is fun but on the one hand it is also risky if we cannot control and manage ourselves. After all, basically, we hope to gain from gambling, not lose, right?
It is way easier to stop something from happening than to deal with the consequences once it did, anyone that gambles must always have on the back of their minds that they could experience some kind of gambling issues, and once they see some of those signs to appear then they need to look for help immediately as it is way easier to overcome those issues the earlier you try to treat them, otherwise the battle to beat your addiction will only get progressively harder the longer you let it take root on yourself.
Maybe you mean it is better to prevent than cure. Because it will be difficult to treat the problem when someone has been controlled by their own desires, and it is less likely for them to recover from addiction. In fact it is very difficult for someone who has experienced addiction to get out of that zone, their mind always justifies and convinces themselves that they will be able to get a win even though it is still uncertain and what is certain is that defeat will always dominate every time they do it. The self-control factor will not mean anything to them and you are right that one of the things that can help them is the people closest to them to remind or teach a lesson from other people's adversity so that they are not too deep to pursue their passions.