It's good to lay it off for a while. Especially if you find that you can't control yourself when gambling.
Yes, there's no other thing to do if you are finding trouble with yourself and gambling is the root cause of it. Sometimes lie lowing isn't about you are trying to forget it forever. Taking a rest for a while and then gets back to it when you are ready but just to make sure that you'll not do the same mistake again or else the sequence will be repetitive and in your part you'll still can't move on or else just find the things that will get your interest.