Yes, a green banana is indeed a fruit.
While green bananas are often used as a vegetable in cooking, especially in savory dishes in the Caribbean, they are, botanically speaking, the same fruit as the yellow, ripe bananas we commonly eat as a snack or for breakfast. According to reference information, in Spanish-speaking islands, they are called guineos.