Yup, it acts as a filter to keep stuff out of your nose. You also have cilia in your nasal passages that trap small particles and gently waft them toward your nostrils in a little cloudlet of snot.
It's OK to trim nose hairs, but apparently you shouldn't pluck them, because that can lead to infection. According to
this article from Popular Science: "Denser nose hair can be an advantage: Scientists at Hacettepe University School of Medicine in Turkey found that patients with sparse nose hairs were nearly three times as likely to suffer from asthma as those with more-hirsute nostrils."
QuoteMen have more body hair than women. In the early days of humanity, women stayed back at the village while men went trudging through the jungle and the swamp to hunt for food. They needed extra protection from insects which spread disease.
Insects up the nose are icky, too.
But I suppose men have more nose hair because they're just generally more hairy.
Here's a tool for removing them...
(I am powerless over Google...)