Yes, but I recommend oil. Carrot cakes can be made with butter, but most carrot cakes use oil instead of butter. Oil makes the cake moist and helps it stay moist for days.