Yes, ur friend can be the main owner of the bike, but he cannot
ride.
For the insurance also can have his name, but it will state that he
is the non-riding policy holder.
He can either put u as the 2nd owner and u ride only, or pay a
little more $$ to make it "Any rider" policy, so whoever has
licence can ride the bike.