Correct, botanically speaking it is a fruit. Interestingly, in culinary classifications they categorize food based on flavor and texture which is why there are many fruits called vegetables in common vernacular. This is from the Journal of Food Composition and Analysis 2009. Thank you.