I wouldn't recommend it. Putting hot food into the fridge will create a moisture on the outside that you don't want. The texture will change to a sticky moist touch. Instead after you bake the cake just sit on a cooling rack on the counter until cooled before frosting. Save leftovers with plastic wrap on outside.