No, it is not okay to use your horn out of anger or frustration, even if you are upset with someone's driving. The horn is intended as a safety device to warn other drivers of your presence or to alert them to potential hazards on the road. Using the horn as a means of expressing anger or impatience can be disruptive and distracting to other drivers, and it can contribute to road rage and dangerous driving behavior.
It is important to exercise patience and restraint on the road, and to communicate with other drivers using clear and respectful signals. If you are concerned about another driver's behavior, the best course of action is to maintain a safe distance and contact law enforcement if necessary.