Eating heavy meals right before bed can negatively affect the quality of your sleep. A light dinner eaten 2-3 hours before bed usually does not cause any issues.