I've done that... I turned to say something to my friend and sewing the side of my finger right by my fingernail. Automatic reaction is to jerk your finger out. Thank goodness I didn't put the needle through my fingernail.
It will hurt for a while, but will eventually get better.