Yes, for a nut-free pesto, simply swap the pine nuts for sunflower seeds! The flavour will be quite different but still delicious nonetheless.