Absolutely. A fresh ripe banana works great too. An overripe banana is sweeter, mashes, and incorporates well in the cake batter. Fresh banana tends to be chunky when mashed but that can easily be taken care of by putting it in a blender. Alternatively, leave it chunky. It will still be delicious with little pockets of banana in the cake.