At room temperature, the cake can sit out perfectly fine overnight. But if the toppings consist of chilled icing, then it may get melted, so refrigerating will be a better option.