Yes, you can use walnuts or almonds in place of pine nuts. Even though you can use them raw as they are, we suggest lightly toasting them to get a richer flavor.