It can keep you awake if you are sensitive to caffeine or eat a lot of the trifle. However, one piece should not keep you awake. If you are concerned about the trifle keeping you awake, use decaf coffee.