you're giving CPR to someone who's not breathing and you are going to stop and say "I have to do this because he is my friend" I don't think so...
Also ... does this mean he wouldn't have done it for a stranger to try and save a life? Or one of his patients, if they weren't his "friends"?