is this rape?

My friend said he consented to having sex with this guy and when the guy started my friend told him he didn't want it anymore but the guy carried on, is this rape?