Can you repay a loan with a partial surrender on a life insurance policy?

Some types of life insurance develop cash value; these are called whole life policies. Term insurance has no cash value. So it depends upon the kind of life insurance you have, and it may also depend upon how long you have been paying premiums.