Banana! 🍌
Yes, you need to remove the male flowers as soon as you spot them.
Be careful not to release pollen when cutting them. Work with the ventilation system switched off, so that nothing flies. And if you can collect the flowers in a small airtight bag, that would be best.
There's a trick to preventing this kind of hermaphroditism, caused by a lack of fertility: simply pollinate just one flower by hand each time you grow a new crop. This way, the plant will no longer have to desperately force itself to reproduce at the end of flowering.
They also say that with the right timing, you can boost yields. But I've never delved into this aspect of the subject, the fact that I can calmly finish flowering is more than enough for me.