Not quite!

Q: You're riding at night. You have your headlights on main beam. When should you dip your headlights if another vehicle overtakes you?
Correct answer:
As soon as the other vehicle passes you
Explanation
At night, you should dip your headlights to avoid dazzling oncoming drivers or those ahead of you. If you're being overtaken, dip your headlights as the other vehicle comes past. When you switch to dipped beam, your view of the road ahead will be reduced, so look ahead for hazards on your side of the road before you do so.
Learn your theory >>
If you're looking for an earlier driving test we can help: www.driving-test-cancellations-4all.co.uk