Yes, you can use ground spices in this recipe. When using ground spices, keep in mind that they can be more potent than whole spices, so you may need to use slightly less to achieve the desired taste. And since the ground spices will absorb into the water, the final resulting apple cider will be more cloudy than usual (but this is totally fine!).