no? he did that because he got what he came for, the location of naruto's whereabouts, thats quite literally the only reason he didnt bother wiping the leaf from the get go, because he was attempting to get information out of them. thats also ignoring the sand has ridiculously worst defences than the leaf, deidara entered the village with no issue by avoiding visual clarity on a giant ass clay bird, the hidden leaf village had an entire sensing barrier that Pain exploited by targeting multiple areas to disorientate the enemy
thats worse for Gaara, being inside the village makes it easy for Pain to force gaara into compromising positions by directly attacking the village with his summons and paths, also unlike in the leaf pain isnt going to spread himspelf apart to make a 1 v 1 possible, his not here to gather intel his here to capture.