Yes! LOL! We had a fruit bowl all summer and I LOVED having my fruit out at room temperature but boy did it attract fruit flies.
Take a banana peel and put it in a Gladware type container. Punch nail size holes in the lid and close it shut. Leave it out and within about 24 hours you'll have caught 95% of them. You can just release them outside and put the container back out to catch the rest. The flies find their way in but they can't get back out.
I used a corn cob nobber thing to punch holes to give you an idea of size. The holes are pretty small.