Well, that is what happened during the entire Tet Offensive. We won very battle, won back very city, took the stored arms and eqpt, and knocked them out of the area for two years.
But lost the PR battle, lost the TV battles, and lost the war to the democrat-communists in Washington and NYC.