Generally, a baby will not sleep easily if they are hungry.
According to available information, if a baby is truly hungry, they won't go back to sleep very easily until they've been fed. However, if they only cry for a short time (five to ten minutes) and then doze off, it might indicate they simply needed help getting back to sleep and weren't actually hungry.