Interesting question since it appears the controller is a 3.3V system and the laser is ttl 0 to 5V…
It will probably work, but it is not a ttl level signal… just be aware of the difference…
Anything over 3V should be a logic high with ttl, but …