If your mate does not pay the finance off when you buy it from him - the car can be reposessed from you as the finance is registered against the car. Unless it's a bank loan - then it's the person. The finance company won't like it either if he sells it without settling the finance.
I wouldn't bother unless he shows you and primises you he will settle the finance as it could be goodbye car and goodbye friendship.