Yes but I think it is very unlikely that they would tell a borrower that the money would be used for gambling, because in general people are usually reluctant to lend money to gamblers even if they are gamblers who have good responsibility in their gambling activities or in the sense that they are gamblers who can maintain and control themselves well. This is because there have been quite a few cases that have occurred that it is really difficult for a gambler to be accountable for the decisions he has made such as borrowing money which in the end usually means that they run away from responsibility.
And maybe this is the reason why gamblers are usually secretive about what the money they borrow is for, usually they lie and say that the money will be used for something else which can also be a plan or scenario that looks desperate so that a borrower feels sorry for them and gives them a loan. This means that I think it is quite difficult to really identify what the money is being used for, unless the person is a very close friend of yours who you usually know about their habits.
I am sorry to say that I think it will not be a wise decision to lend money to a gambler though many times we have to lend it can make loser both the lender as well as a borrower as the gambler can lose the funds and for that reason if the person can't repay the fund then s/he can fall on a bad situation.