...Now the question remain that Is it good to take loan to gamble?
A loan can only be taken if there is a 100% chance that it will be repaid. But since your friend has already lost his money, there is no such guaranteed possibility of repayment, and accordingly, each loan provided to him in the future has no guarantees that it will be refunded.