As the pan conducts heat, your cake will continue to increase in temperature for a few minutes out of the oven, but this is no reason to take it out of the pan before it's time. When the timer goes off, the hot mass of the cake is delicate, and if you try to get it out of the pan too soon, it can stick to the pan, break, or both.