You do not have to refrigerate the cake before frosting however you must make sure that the cake has cooled down completely before frosting. If the cake has not fully cooled down then the frosting will melt while it is being applied to the cake.