Yes! Pine nuts are the traditional use for pesto, but they can be expensive and harder to find. You can substitute the walnuts out for any other nuts (almonds, cashews, pecans, pistachios), but just note that each nut will add a slightly different flavor to this pesto recipe.