Absolutely. In fact, it's best to make the cake a day or two ahead of when you plan to serve it, and keep it in the fridge until then.