Whether it's ok to eat carbs before bed or not depends on your goals. If you're cutting, it can hurt you, but if you're bulking, it can help you a lot. It can give you and insulin release through the night and carbs to refill your muscles as they repair.