Yes, what we eat can greatly affect our ability to fall asleep and stay asleep. Avoiding caffeine and sugary foods close to bedtime can improve overall quality of rest. Consuming foods rich in tryptophan, like dairy products or poultry, may also promote better sleep.