you can quit gambling when ever you want just put in your mind that you can do it for lifetime.
But its not that easy mate. You have to be mentally strong and resist going back to gambling again. Because sometimes your mind would said no, but your heart decides otherwise. That's why you need to get yourself busy with other thing or go other places so that it will not remind you of anything gambling related.
But as long as you identify that you have gambling addiction and admit to yourself that you want to get out of it and needed help, I think this is already a good step for you and having a supportive family will also bring your addiction to zero. Admit to yourself + solid support system = quitting gambling.