Yes! I like to use either walnuts for pine nuts in my pesto. You can substitute one for another in recipes. If I'm making a change to recipes I like to start with a smaller amount and then add more until I get the desired flavor. Pine nuts can have a richer flavor and may take less in a recipe.