Yes, you can substitute pecans with walnuts or almonds for a different flavor and texture.