It is perfectly fine to eat chocolate at night. Eating chocolate produces more serotonin, which is known as a happy chemical. It makes you sleep faster and sleep longer. It also helps reduce stress adding to better sleep quality. However, chocolate contains caffeine, so if you are among those caffeine-sensitive people, please avoid eating chocolate at bedtime cravings.