Yes! Pesto is delicious made with all sorts of nuts. I like using walnuts for their rich, oily flavor, but almonds can be delicious, too! Avoid sweet nuts like pecans and pistachios, as the sweetness doesn't mesh well with basil.