Pine nuts are not necessary for making pesto. You can leave them out if desired, or even use another type of nut as a substitute, such as toasted walnuts if you enjoy the texture they add.