Retirement tax questions

I took out a 401K hardship loan for medical bills. The payment is $800.00 per month. Am I able to still write off the medical bills that I paid with that money?