Your statement is so absurd that the only explanation is that you must not have had children. Hunger is only 1 of a dozen different reasons why babies will cry.
The advice is still not generally applicable.
(About half the parents in the world, fathers, aren't even capable of producing milk.)