Yes, you usually can, but the loan will either need to be paid off or the pay-off amount will be witheld, plus Federal and State Income Tax and a 10% Pre-Mature Withdrawal Penalty on the amount of the loan if you are under 59 1/2 years of age.
Not until you pay off the loan.