Yes you can compost them privet is not poisonous but even if it was it could still be composted. Poisons break down during the composting process so you can add poisonous plant material wether it is rhubarb leaves or deadly nightshade the resulting compost is perfectly safe.