If your underbaked cake is fresh out the oven and still hot, you can still put it back in the oven to bake. However, if your cake is already fully cooled, it is too late to rebake it.