Yes, if you make this cake at night and need it to cool, there is no problem with leaving it in the pan to cool all night. Then it should be perfectly ready to frost and serve tomorrow.