Only if this jar of pitted fruit was called an ‘oliveless jar of cherries’. Most people would be highly surprised to find olives in something that goes out of it’s way to indicate it doesn’t contain any.
An unpitted olive in a jar of pitted olives.
An unpitted cherry in a jar of pitted cherries.