When at war, your citadel next to a city will damage garrisoned units (including air), but does not damage the city itself.
Be forewarned that when cities change owners, they automatically get the six hexes next to city. So if you conqueror the city but the AI captures it back, you lose the couple hex you stole and the citadel.