Yes! You can always just increase or decrease the amount of batter to make one or the other.  Most of our cake recipes are 3 layers, so you could just do half or a 1/3 of the ingredients to make a smaller amount of cupcakes (or just make them all).  Cupcakes need a reduced amount of time - typically 15-25 minutes. A toothpick inserted should come out clean.