Does "loan" mean the same thing in these two sentences?

He got a loan of five thousand pounds.

All loans from the library, whether books or audio material, must be returned within two weeks.
the same meaning