My son hit his head really hard **help**

He's learning how to sit up and been doing it really good for the most part. But he lost his balance and fell backwards and hit his head so hard we heard it thud. I picked him up and he was crying. He was calming down and threw up all over me. He was getting whiney and dropping his head and ribbing his eyes like he needed a nap for 2 hours until he finally took a nap?

Was it a bad idea to let him go to sleep? I'm worried about how much he hits his head and face while he's learning to sit up. He's catching himself before he hits 70% of the time but it still happens and scares me since he threw up after..