No, it’s not necessary at all but if you use less ripe bananas your bread is likely to be slightly less sweet. The natural sweetness of bananas increases as they ripen so the riper the bananas, the more sweetness they give the bread.