It's generally recommended to peel the apples before adding them to the cake batter. The peel can affect the texture of the cake, and peeling the apples also ensures a smoother consistency.