Do some plants keep away pests?

#1
Are there plants that really work to keep away pests like mosquitoes or even biting flies? I've read about some but I don't know if they really work.
 
#2
I don't know of any carnivorous plants except the Venus Fly Trap. Anyway, how exactly are the plants repelling insects? Do they give off some odor?