Tomatoes don't have pits so they are vegetables.
Bananas don't have pits, they are vegetables?
Apples don't have pits, they are vegetables?
Pears don't have pits, they are vegetables?
Key word here is seed(s), not pit. A pit is a single seed. Olives, cherries, and avocados have pits, they are fruits.
Answer to OP:
Yes.