Not efficiently and not as reliably as a nuclear reactor though. It would if they built a space station in an orbit with minimal other objects getting in the way of it and the sun. Teach the ai in between Sol and Venus and bring it back if it discovers anything useful rather than making revenge porn and plagiarizing artists
1 GW of solar is much cheaper than 1 GW of nuclear. Solar is both cheaper to build and cheaper to run. It's the most efficient energy source e currently have.
Plus it doesn't have the con of meltdown and nuclear fallout. Safer nuclear power is still potentially fucking dangerous for life for 20000 years. Nuclear fission energy is the height of human hubris.
Nuclear produces that 1 GW 24/7 and all year though. My solar panels vastly overproduce on most summer days and are worthless at nights and from fall to spring.
If we're still talking about AI, you can ramp up the AI training and batch workloads when the sun is shining and stop them overnight. It's one of those things like aluminum smelters where you can adjust the load