Question about being induced.

So I know that I can not eat while I'm in labor. But since I know I'm being induced do I not eat 12 hours before? Like when you're having surgery they tell you not to eat 12 hours before. Is being induced the same?