Using the wrong cake pan size can affect the cooking time and result in an unevenly cooked cake. If your pan is too small, the cake will take longer to cook in the middle. Conversely, if the pan is too large, the cake may cook too quickly on the outside while the center remains undercooked.