Given that dark and milk chocolate can contain some amounts of caffeine, some people may be wondering if they can eat these just before bed, without ruining their sleep patterns. However, unless you have a particular sensitivity to caffeine products, a small amount of chocolate before bed isn’t going to disrupt your sleeping schedule, so enjoy!