I usually don't, which makes this recipe SO quick and I find the pesto SO flavorful already with raw walnuts. If you do decide to toast them, then make sure to cool them down before processing with the other ingredients.