Is it true?

I was told by my grandmother in law that my baby isn't sleeping through the night and waking up ever hour is because hes not eating enough during the day