You can drop sacks of money from low earth orbit that would do just as much damage and be way cheaper.
I do think the moon has an advantage from a standpoint that the material is already there. You have to "shoot up hill" to stop the gun from getting loaded.