I mean, scientifically, so are you - Yobo's right that carbs are carbs and your body goes through them in more or less the same rate. It matters more if you overdo it on carbs - they should be about half of your total caloric intake (on average people and lifters, not some pro athletes that follow macro and micronutrients).
Your body does work through things slightly slower - about ~20%- when you sleep - but it still matters more if you intake a normal amount, rather than when you intake that amount.
Naturally it's better for you if you intake gradually as too much of one things at once is always not a great idea, whichever nutrient you'd pick. Any one you pick and overdo close to sleep (1-2 hours or less) will make you feel bloated/heavy and will impact your sleep and will make you feel like crap in the morning obviously.
That's a whole hot topic in itself for certain diets like OMAD, warrior diet, etc. as some people suggest and recommend it but it's not for everyone.
Sources for my claims above: / https://www.getrecall.ai/summary/th...to-lose-fat-and-build-muscle-at-the-same-time / sleep is as per https://www.pnas.org/doi/pdf/10.1073/pnas.1216951110 / many more papers written on the subject really.
In reality, most of it will be down to you and how you feel - I'm personally okay to consume carbs at night and feel fine both during sleep and in the morning, but I have friends that don't, and that's where YMMV basically. Organisms are vastly different and how you feel is largely down to you after all.
Sorry chum, citing an unhinged YouTuber and an article about lack of sleep/obesity are not ‘sources’. I don’t think you or Yobo can give me a single credible reason to take either of you seriously. Getting a bit tedious now.