Sure if you have a peanut allergy you can substitute almonds, pistachios, cashews or macadamia nuts if those are better for you. If you are allergic to all nuts you can possibly use sunflower seeds or hemp seeds as an alternative.