The freshly baked cake is tender and so frosting it right away will result in a lot of crumbs and possibly breakage. For this reason, I recommend refrigerating the cake for at least 2 hours before frosting it.