It is advisable to wait a few hours, maybe 3 or 4 hours after eating, before going to sleep. Directly going to bed might cause digestion issues which will inevitably lead to sleep disturbance.