Once you remove a cake from the oven and it has cooled off the cake cannot be recooked as it will not cook it or rise it any further.
If the cake has not been cooked all the way through then there's nothing you can do to cook the cake any further.
All you can do is just eat the cake or throw it out if it's undercooked.
However you can eat the cake even when it's not fully cooked and it will do you no harm but won't be as enjoyable.
I've made mistakes with cooking my first cakes and undercooked at least 20 of them before I got the cake cooked just right.
I've eaten everyone of those cakes and had no health issues.
So you must make sure the cake is fully cooked before removing it from the oven or it won't cook any further.