Yes, you can, but it won't be the same as using a ripe banana because the sweetness won't be there. You want to use bananas with spots on the skin, right through ones where the skins have turned black (these are super sweet). However, don't use overripe bananas when moldy because they have gone too far.