Sure but acquiring enough land to build solar profitably near a DC that can hook up to the big US interconnects is very expensive and will often be blocked by residents. If you want to build solar where there are few people and cheap input costs, then you need to transmit the power to the DC.
I keep hearing about brand new data centers they want to create. Seems reasonable to go to sunny, enormous, business friendly Texas and surround the data center site with acres of solar panels, batteries, emergency gas, and whatever sized grid connection you can get approved immediately.
If the DC is for training or text inference, latency seems irrelevant, so go where you can quickly plop down power.