I don't think that escaping your problem by gambling is not a good idea in my opinion as it will only add more problems. My suggestion is that you should divert your attention in other things so that you won't always remember your problem. If your problem is financial then it would only make it worse.
Avoiding problems is always bad because the problem is not solved and comes back again and again.
Avoiding the problem over and over again, we enjoy a passing sense of comfort from the fact that we did not have to strain the gyrus to solve it, but this is just an illusion.
The problem will come back again and again, and the situation may worsen each time.
In addition, we will constantly think that we have a problem that needs to be solved, which will prevent us from being effective in other areas of life.