There are no obstacles that would explicitly prohibit us in doing so, merely challenges we have yet to learn to defy. Taking on all these challenges head-on in a single project would probably be a foolish waste of hard to come by funds for scientific research, but eventually we will get to the point when we'll look back and say, my, haven't we done well to have come thus far? But even now, when all the pros and contraspro et contra are weight, there might be projects that would greatly benefit by having an X-ray observatory placed on the surface of the Moon and are possibly worth taking the risk, like for example the MagEX one I mentioned earlier that neatly avoids all of the major hurdles by calling for its placement on the near side of the Moon.
We have however so far done pretty well without going that extra mile, and the Chandra X-ray Observatory has so far an exemplary track record with planned operational durationlifespan of 5 years, yet it's still providing us with valuable data good 14 years after it was launched in the July 23, 1999. Granted though, completely free of interference - that it isn't.