Can eating certain foods help me avoid migraines?

Food triggers. May be better to avoid some foods, can be individual. Some foods contain chemicals, e.g. Tyramine, or histamine, that affect blood vessels, might then affect headache. Some evidence that skipping meals is bad. Aged cheeses, alcohol, chocolate, caffeine, some nuts, cultured milk products, some fruits like bananas, kiwi, figs, dried fruit, walnuts, smoked fish, yeast extract. Check w/md, maybe rd.
Possibly. There is emerging evidence that suggest certain diets can help reduce pain and headaches. For instance, a proper balance of omega-3 and omega-6 seems to be important. Also, dietary polyamines and magnesium have been shown to be helpfull.
Yes. Actually it is more helpful to avoid certain foods that may trigger your migraines. These foods vary from person to person.