Yes, absolutely. Banana plants can get rather large, so it's best to get a dwarf variety. There are a lot of different kinds of banana sold as houseplants, and not all of them produce edible fruit, so make sure you go for one like the Cavendish Dwarf Banana.