No. These are probably fruit flies, which commonly occur on rotting fruit and vegetables. A tight fitting lid will help to exclude them. Also, if you bury the vegetable waste as you add it, or keep it covered with damp newspaper, they are less likely to be a problem. Flies do not harm the compost, although they can be irritating and offensive to some people.