If in doubt, always call your vet or the Animal Poison Line immediately.
Cherry pits, stems, and leaves all contain cyanogenic glycosides that release hydrogen cyanide. The flesh of the cherry is safe but the pits are also a choking hazard. Always remove pits completely before feeding cherries.
Contact your vet if your dog ate whole cherries and may have chewed the pits.