Problems Keeping it Up!

so a couple of days ago I tried to have sex with a friend of mine, but everytime he tried to penetrate he couldn't keep himself hard enough to actually do it. is this normal? He was hard at the beginning, and we used lube and everything, but he still wasn't able to keep it up.