Yes, it's not terribly difficult. But it depends....
An LED requires D/C while the dynamo puts out A/C. A simple device called a bridge rectifier, which any caveman with a soldering iron can put together from four diodes, converts the A/C to D/C.
If your LED headlight is intended to run off a dynamo, it has a bridge rectifier built in. [Though I may admit: I can't be sure of that and don't know how to check.]
Assuming so, then all you have to do is connect the wire from the dynamo to one connection point on the headlight, and run a wire from the frame (or fork or any place that connects it, such as the headset or brake) to the other connection on the headlight, and you should be ready to go.
Thanks. I'll give it a whirl.