Yes you can.
Are you familiar with Gcode commands?
I cannot tell you how to do what you want as i am not familiar with your controller / gcode flavor.
For my controller, this is what I would do (Do not run this on your controller unless you know what works for you). i am running Smoothieware:
$H (Home)
G90 (Absolute coordinates)
X100 Y100 (move in X 100mm and Y 100mm from origin)
then command to turn the laser on (each controller / setup has their specific commands)
Please be careful with macros commands related to movements and laser output. machines are dumb robots.