That's an excellent strategy for dealing with any compulsive urge or even cravings (e.g., for a cigarette, or a drink).
I am either going to get my hair cut really short, or get a tattoo or get a piercing. I feel the NEED to do something like that.