Laser in space

If you shot a laser in space would it continue indefinitely?