Can you eat while in labor?

When you first get to the hospital do they let you eat? I'm asking because  I'm 30 weeks currently and feeling hungry almost 24/7 😅 when I don't have something to snack on I feel light headed, and I don't wanna feel that way when I'm there!