I've been looking to do the same, found this on the Endurance Laser website.
How to Connect to Duet3D Wifi Board
The PWM input of the laser is connected to the Fan0 output of the Duet board.
Power control teams
M106 S127 – 50% power
M106 S255 – 100% power
M106 S0 – Laser Off
https://endurancelasers.com/wiring-endurance-lasers-to-top-popular-boards-cnc/
I don't see why it won't work.