Yes, you can. Fresh ingredients are ideal for cooking, but having pantry staples provide a longer shelf life and convenience in meal preparation.