If you can stop using substance or stop your addictive behavior for extended periods of time without craving, you are not dependent. You are dependent only if you can't stop without physical or psychological distress (you have unpleasant physical and/or psychological withdrawal symptoms) or if you stop and then relapse.
...there is a saying used in twelve-step programs and in most treatment centers that "Relapse is part of recovery." It's another dangerous slogan that is based on a myth, and it only gives people permission to relapse because that think that when they do, they are on the road to recovery.