The best burgers, eh? I must have grown too used to whats in my backyard.
But.. Back to the game..
It shouldn't matter if the artillery is in or outside a city. As long as the unit has a range of at least 4 and is entrenched to at least level 3 it should work.