If the headset was installed properly, with enough gap between the top nut and the fork, it should not loosen with proper torque on the nut. Headsets tend to loosen when there is not enough of that gap, even if you tighten very well.
You can check it yourself or have a trusted mechanic check it for you.
If done properly, you should have no worries about it on the road.