I have a small to medium sized hard bump on the right side of my head closer to my ear. Hurts when touched causes migraines. Could it be cancerous?

Unlikely. You should show your bump to your primary doctor. Fine needle aspiration is the fast informative procedure for fast answer. Most probably you have benign lesion and you have migraine not from lesion, just because you think about this lesion constantly. Doctor's examination needed. It could be inflammed cyst ( thyroglossal, for example). Be well. Thank you for question.