Are their any foods that can make my headaches go away?

Probably not. However, several foods can cause headaches, like red wine, aged cheeses, pickled foods, msg, nitrites in cold cuts, etc. Entire lists can be googled. Medication side effects not uncommonly include headaches. Migraine abortives work well (triptans), and several otc herbals like butterbur, feverfew can prevent migraines.