Can a bank make a margin loan using bank stock?

I was referred to state code and it appears you cannot unless the stock is being used to prevent loss upon a debt previously contracted for in good faith.

It sounds like we cannot unless the above exception applies?

Any other interpretations or comments on this would be helpful..

Thank you