Keto diet takes a strict amount of restricted calories, fats, sugar, and carbs. Although pine nuts are high in calories you could add them to a keto diet given you eat them sparingly. One piece of pine nut consists of 4 grams of carbs and 1 gram of sugar, so eat them according to your planned diet plan.