Midnight snack???

So I'm on a schedule right now that i go to bed around 9 and  get up to pee around 2 am but after laying back down around 3 I have the worst time getting back to sleep because my stomach growles so loud it wakes up my husband!! I feel super hugry, and sometimes when j finally fall back asleep I'll wake up around 6 with the worst headache! Like can't open my eyes headache!! Does anyone else go thru this? I have an appointment with my dr the 17th but can't go on like this much longer. Would you say it's ok to have a midnight snack on my way back from the bathroom?