I wouldn't recommend doing that. The ingredients might start to mingle in the glass if you let it sit for too long. But having said that; making the dessert only takes a few minutes so it's usually fine to make it last minute for a dinner party.