While the whole spices are best in making spiced apple cider, you can use ground spices if these are all you have available. This may result in your finished product having a bit of spice that does not strain out and clusters at the bottom and of your pitcher. This is entirely harmless but a bit unpleasant to drink, so take care to pouring out into a serving glass.