it would appear this makes perfect sense but the truth is you actually will over the long term leech your body of them doing it that way
at night your goal is rest, repair and recovery. this means going to sleep without taking anything except some plain water is going to be your best option. your body will do the rest if you let it.