1099 NEC

So I worked at door dash.  I also had a friend that did some of the work too as I was sick for a while and couldn't do the job.   The pay was only sent in my name.  Can I give my friend a 1099 NEC to report her part of the money and then deduct contract labor on my schedule C?