Yes coffee beans are edible! Coffee beans have been eaten for hundreds and possibly thousands of years.
Roasted coffee beans can be sprinkled on top of a cake or in a cocktail, coated in yogurt or chocolate and even eaten raw. However eating coffee beans needs to be in moderation as caffeine content per gram is much higher than in ground and brewed coffee.