Is a cocoa bean a fruit?

No, the cocoa pod is the tree's fruit, not the bean. The bean is actually the fruit's seed.