A long time ago, I borrowed only once in my life to recoup. This is a very scary feeling mixed with anger and shame towards oneself. I was very lucky that the bet played and I immediately repaid the debt. I have never done anything like this again, and I won't do it. I don't know what would have happened to me now if I hadn't been able to recoup on borrowed funds then.
Now I can afford to borrow only when absolutely necessary. I take this as a matter of principle. And taking loans in order to place a bet or win back is a sign of incompetence and neglect of the elementary basics of financial literacy. But sometimes the desire to recoup is above all other desires. This must be feared like fire and learn from their mistakes.
It's okay if you have an experience like that because it is a valuable lesson for you so you don't repeat it because you already feel how you feel when you are in debt. I would be happy if you never do that again, especially if the money you borrow is only for gambling, whereas if you owe it, it must be for your daily needs. Hopefully, you will never be in debt again and be able to make ends meet and not use borrowed money to gamble.
If you can make it a principle, that's a good thing. At least you have a grip on not being in debt for anything including debt to gamble. That's a big No, you shouldn't do. You can control that desire, especially since you have had previous debt experiences where you felt this discomfort precisely because you have felt that experience that you have to remember to avoid being in debt from other people.