Personal Loan in US to payoff Home Loan in India

Can I borrow money in USA through Personal Loan to repay my existing Home Loan Balance in India. Home Loan was taken in 2010 when I was in India and I am in US on L1A from last 15 months. I already have NRE account with HDFC. Is it legally ok to take loan in US to repay in India