When your newborn baby gets hungry they should cry and wake you up to let you know that they're hungry.
You'll certainly be woken up in the middle of the night for at least the first 6 months of your babies life. So be prepared to be sleep deprived for awhile.
Your baby will let you know when they get hungry.