Hello , aspirin is a blood thinner which to my knowledge would helps some with migraines because the blood would flow more easily. I think most doctors prescribe medicines like ibuprofen, because that is an anti inflammatory medication, which helps because when you have a migraine, your blood vessels become larger.
I hope that helps. Make sure you talk to your doctor before trying those meds out.