Absolutely! If you prefer a nut-free cake, simply omit the pecans or walnuts. You can replace them with seeds like sunflower or pumpkin seeds for a slight crunch or leave them out altogether for a smoother texture. The cake will still be moist and flavorful without the nuts.