Did the city of Ai exist after Joshua destroyed it?
No, it was never rebuilt after Joshua destroyed it.
And Joshua burnt Ai, and made it an heap for ever, even a desolation unto this day. Joshua 8:28
Yes, it existed at the time of the Babylonian captivity.
The men of Bethel and Ai, an hundred twenty and three. Nehemiah 7:32