Fruit flies usually lay eggs on the outside of a banana, rather than on the inside. If there are small cracks within the banana skin, it is possible for fruit flies to enter.