Yes, your oustanding loan will be transferred under your friend's name.