Not likely, because I'd have to teach the AI to do this.
Well, I'd figure that either 3 of these scenario have to be met and then the AI should consider liberating the city, when would I ever want to liberate a city that it took thousands of my men lost to trade for.
#1. I have a courthouse, yet the city isn't producing enough happiness and adds up to at least 5% of my total unhappiness (This wouldn't have to be weighed at all because if the city was productive, then the city wouldn't be producing a lot of unhappiness).
#2. Heavily pursuing Diplomatic Victory. City-states are worth more to me than a city (City-states should be -60 or -30 influence toward them, AI could be weighed depending on their diplomatic flavors!)
#3. The enemy is at my border, I have calculated the city might be lost in an instant toward the enemy and I don't have enough turns to raze them to the ground. I should only liberate it if the city did not originally belong to my enemies or my enemies' friends in order to create a distraction. (If the city is damaged, presumably you can't liberate it to prevent abuse).