No, coffee beans are actually the seeds of a fruit. The coffee plant produces red or purple fruits called coffee cherries. The cherries contain two seeds, which are used to make coffee. The coffee seeds are not considered to be vegetables or legumes.