I don't think that's true for most people. I do weight lifting in the mornings with only a coffee, dinner around 6pm the previous day with no snacks afterwards, and my diet is fairly carby.
I'm not saying my personal experience should be considered universal, that'd be foolish. Just recounting that.
But it makes sense given how metabolizing fat and metabolizing sugar works. Insulin response, etc.