Stopping gambling because of love

Is someone able to stop gambling because they love the person they’re with?

As in, if you are really in love with the person then you will do your best to not lose them…