Yes, you could actually keep the cherry pits depending on how you plan on using the compote! Simply note that the recipe is based on a weight of cherries that have been pitted, so you will need more un-pitted cherries to get the same amount of compote.