Is it permitted to sound the horn to advise another driver that a traffic light has changed from red to green?

Explanation
The horn can only be used to avoid an accident or to warn others that we are doing an emergency service with our vehicle. Outside the town, moreover, to warn the vehicle in front that we want to overtake it.
Do you want to do the
official exams of the DGT?