No. Borrowing from your HSA or pledging it as collateral is a prohibited transaction and can disqualify the entire account.
If an HSA is disqualified, it stops being treated as an HSA and its balance is generally treated as distributed to you. That can mean income tax on the full amount, and possibly an additional penalty tax, even on money you never spent.
If you need cash for a medical bill, the right move is to take a normal distribution for that qualified expense. Withdrawals for qualified medical expenses are tax-free and do not put the account at risk.