Migraine during pregnancy

I'm not pregnant yet but I was wondering if you had a migraine during pregnancy would it affect the baby? That might be a stupid question but I have serious chronic migraines and can't find anything to help with them so I just suffer through it. But then I thought, what if it affects the baby when I'm pregnant? Sorry if that's a dumb question.