Current belief is that the Moon was formed from a big splash when a Mars sized planet collided with Earth.
So the Moon has everything that the crust of Earth has. There is more because of asteroid collisions through the ages.
So yes, there is gold on the Moon. But on Earth we have gold deposits that were laid down by bacteria processing the elements that are randomly distributed through the ground. Water flow plays into that.
The Moon has no ground water and no bacteria that we know of. Therefore, no gold veins.
Still, as we process iron, aluminum and silicon we will get by-products. Things like gold, platinum, silver, tin, copper and so forth are all there, and the miners can accumulate these materials over time. Slag can be mined for other minerals, but you will need to have good systems to recover it.
The same is frequently true on Earth. I am aware of some copper mines where they actually pulled out more in dollar amounts in gold than they did in copper. It was less than a twentieth by weight, but in dollar amounts, the gold was sometimes worth more than the copper.
Many asteroids have sizable quantities of rare earth elements. Often more than is commonly found on Earth as a whole. Tracing those rare earths was how Scientists proved that an asteroid killed off the dinosaurs.
But without all those helpful bacteria, it takes a lot of work to get the materials.
So we are more likely to get valuable materials like semi-conductors or high tech alloys than simple gold.
Transport can be cheap from the Moon to the surface of the Earth, but is astronomically expensive from Earth to Moon.
The same problems exist for things like Tritium and iridium or Rhodium as well.