There is a chance that they will pass the cherry pits uneventfully, and I think keeping a very close eye over the next 48 to 72 hours would be best. I hope that all goes well. If your dog ate or chewed on enough cherry pits, there may be a toxicity for your dog.
More useful articles on a similar topic 👇
Are cherry trees toxic to animals?Will one cherry hurt my dog?