Sure! If you use a different pan size, the baking time might change, so keep an eye on the cake as it bakes and use a toothpick to check if it's done.