Yes. Refinancing a loan involves taking out a new loan and using the proceeds to pay off the old one. Nothing stops you from getting a new mortgage and using the money to pay off your original physician loan.