Yeah its all about if you can control yourself, if you can do that there is nothing to worry about believe me.
If you really want to quit you should just control yourself and talk to friends and family about it.
yes i do agree with you besides strong desire from himself environment also have an important role in this case because this is also main factor can make people quit from gambling