Yes.
Drosera, Drosophyllum, and Pinguicula are some carnivorous plants that can trap and consume gnats.