The short answer is no. A common headache results from a narrowing of the cranial blood vessels, which is called vasoconstriction. With migraines, those blood vessel expand, which is known as vasodilation. During a migraine, tissue surrounding the brain is swollen, which causes intense pain.
The medication prescribed for a headache will actually increase migraine pain. That is one of the reasons why proper diagnosis of migraine is important.