Yes. Migraines can occur after a period without food: overnight, for example, or when a meal is skipped. Prevention of these headaches includes maintaining regular meal schedules, avoid skipping a meal or fasting. You may want to avoid oversleeping on weekends, which may lead to a headache, although not necessarily a migraine.