For a pet dog, it is safe to trim the whiskers — it will not cause any harm. The dog will not lose its sense of smell and will not have trouble eating.
Whiskers as a sensory organ are important mainly for dogs that live outdoors and need to find food on their own.