Why not?
Select a Gamma Ray with a wavelength of 10^-11 m, and select a beam waist of 1 meter, and you end up with a rayleigh length of pi*10^11 meters. Granted, that's a very large beam waist, but it seems like a lot of people are going for 1km+ ships on this forum, so that size of laser could fit fairly reasonably.
Multiply by the ratio of meters to the distance light covers in one second (1 light-second/3e8 m) and we get the rayleigh length in terms of light-seconds, approximately 1050 light-seconds, or at least 17 light-minutes, for this long-range gamma laser design. If the rayleigh width occurs at the lense, that effectively means an effective range of 1050 light-seconds where the laser's intensity is at least half of our maximum, point-blank intensity. In fact you can shorten the beam waist a little bit to increase intensity while still keeping 50% of your maximum intensity at a range in excess of 1 light-minute. From what it looks like, you could reduce the beam waist up to about .25 meters and get that result, using gamma radiation.
Not that you're going to hit anything that's one light-minute away, but that's not what's being asked.
Okay, so you're talking about "damaging" energy, so knowing how well a beam holds its intensity isn't enough. So, to approximate this damage, let's dig into some heat transfer!
We have our laser with that given characteristics: a beam waist of 1 meter, and we're firing at a target that's at the edge of our rayleigh length of 1050 light-seconds. In which case, our effective beam waist at that distance is 1.414 meters from here:
In other words, the laser beam that's impacting the surface of our target has a radius of 1.414m, or a diameter of 2.828m. All that energy getting pumped into the laser, whatever isn't getting reflected, has to be absorbed by the ship's armor. Not a whole lot of materials that I know of have high reflectivity for gamma rays, so we'll assume the absorbtivity is about 1: Or all energy exiting the laser beam must be absorbed by the armor.
Now, the general equation for conduction (Fourier's Law) would be a lot to work with for a general 3D problem. Fortunately, we can simplify the problem up a bit using a conduction shape factor.
Here's the basic idea: Our laser is heating the surface of our target in a circular cross-section of diameter "D". If the armor of our spacecraft (or whatever other target) is "thick", then that energy from our laser needs to conduct its heat into the nearby surrounding armor/structure of the ship. Given the conduction properties of the "armor" (basically how 'fast' heat flows), and whatever external temperature T2 the semi-infinite medium is supposed to be held at, and given the power output of the laser, we can approximate the temperature that spot on the surface would be at if we were to continue holding that laser at that particular spot for a long time (steady-state conditions).
The working equation for this is:
Q=S*k*(T1-T2)
S=Shape factor (for this specific scenario/geometry, S=2D. D=2.828m, so S=5.656m
k=Conduction coefficient
T1= Temperature of the surface being heated, which we want to find.
Q=Heat rate, or the laser's rated output power.
T2= Temperature of the semi-infinite medium, basically the surrounding metal that is not being melted directly.
We'll presume a human crew who likes to be comfortable and not freezing to death on the target vessel. So, let's let T2 be a temperature that's comfortable for said humans to continue to exist, about 300 Kelvins.
Rearranging the equation gives us the following:
Q/(S*k)+T2=T1
The most "famous" laser system currently existing today is fairly small with a power output of 30,000 Watts, and they want to get that up to 100,000 watts and want to test even 300,000 watts on a small sea-faring destroyers. So let's take a fairly conservative gander and say that Q=1,000,000 Watts of power output is reasonable for our huge space laser, which is much smaller than the maximum power output of a fission or fusion reactor.
It's a lot harder to guess what a spaceship or space station would be "armored" with in the future, so I'll go with an aluminum basic structure. We'll look at a table of aluminum k-values vs temperature and pick the 240 W/(m*K) to try and be conservative with our output temperature.
Plugging everything in, we find that:
(1,000,000W)/(5.656m*240W/mK)+300K=1037K=T2
So the surface material at the laser is at 1037K if the laser holds its position there. There's a slight issue: Aluminum melts at about 930K, so this laser will indeed do some damage despite its high beam waist. Granted, that neglects radiation from that heated surface so the effective temperature will actually be a bit smaller, but that issue can be fixed fairly easily just by pumping up the power to the still-reasonable 2 Megawatts.
If we optimize the laser a bit, since we're obviously not going to be hitting anything
16 light-minutes away, so let's reduce that beam waist to a more reasonable level of .25m. That gives us a rayleigh length of only about 1 light-minute away, but we'll benefit by having a smaller area and thus more high-focused laser.
Our new beam width at our rayleigh range is .707m, and our new shape factor is thus 1.414m. Using the same aluminum structure and 1 MW power output:
(1,000,000W)/(1.414m*240W/mK)+300K=3247K=T2
Again, our surface aluminum is going to melt off the longer the beam rests on the surface, since the melting temperature is much lower than the predicted steady-state temperature. And in this case, even faster, due to energy being concentrated in a smaller area (precisely
how fast, however, is outside the scope of this analysis). Even taking into account the radiation leaving the immediate vicinity providing an additional cooling effect, I still end up with an estimated equilibrium temperature of approximately 1734K for the aluminum that's unfortunate enough to be in the line of fire.
You can repeat the calculation using data for steel or titanium as your structural materials, but they'll still melt under these conditions.
There's a few tricks you could do to mitigate the laser's effectiveness. One would be somehow using diamond as your structural material, since it has a very high melting (well,
sublimation) point. You could try to find a surface with a very high reflectivity for gamma radiation, so only a fraction of the incoming laser power is absorbed, although I'm not even sure if they exist for that. And there's all the issues that would come with trying to hold a laser down at the same point against a target that's literally light-seconds away. And, of course, you would have to invent a gamma-ray laser, which doesn't yet exist. And of course there's absolutely zero practicality of firing at non-stationary targets more than maybe a few light-seconds away.
But would it be impossible to design a laser that can damage something light-minutes away, provided it can hit? Not in the slightest.