Yes, you need to bring the troops right up to the city, not behind the enemy.