Sort of. For a truly classic basil pesto, you need to use pine nuts for the proper flavor. However, you may substitute other nuts like walnuts, almonds, or pumpkin seeds for less expensive options, but the flavor will be different.