Your headache is most likely related to the blow to your head.
Your symptoms should improve over the next 24 - 48 hours. If you are not improving, contact your doctor. Call sooner if the headache is getting worse or you develop new symptoms in addition to the headache.
It's possible that your headache is due to something else. To learn about other possible reasons for your headache.