Yes, you can substitute walnuts for the pecans in the trisha yearwood pecan tassies recipe. The walnuts will provide a slightly different flavor profile, but they'll still give the tassies a delicious nutty taste. Feel free to experiment with different nuts and find the combination you enjoy the most.