No. But the Basil top leaves are curled probably because of some kind of disease. However, this curling had been for a long time now, but the insect just appeared today.
The leaf curling may be due to some kind of little insect like aphids or a fungus. The flies may be eating them.