Yes, with a couple of guidelines! Definitely use cherry tomatoes, which are flavorful all year round, and if you can't find basil out of season in your supermarket, fresh thyme or oregano or even parsley will give it a nice herb flavor.