Yes, it was exactly what they were trying to do when so called battle for Donbas started in May.
Not encircle a 'frontline'. Encircle those troops that manned those fortified positions. To circumvent then from the flancs.
You need to take the flanks and the center of a designated front-line object.
That is precisely as to what the RF is doing since May/June 2022 - rather very, very, slow - but so far successful. If it will also be sucessful in regards to Bakhmut and Avdiivka - we will see.
Russia did not have the forces to take control of the presently occupied southern and eastern territories, and attack a designated object along the prepared and heavily fortified front line running from Luhansk to Donbas from Feb. to May 2022.
If you remember, the RF had overrun almost 18000km2 in the first 3 weeks - additionally to the territory they now presently still occupy. These 18000 km2 have since April 2022 all been liberated by the UAF - due to extensive fighting? I will leave that up to you. I would even dare to state, that the disorganized and mostly chaotic RF retreats cost them more equipment and troops then if they would have put up a fight.
The Russians got out of Lyman almost four months later after taking Lysychansk. Ukrainian army liberated Lyman in the result of a counter-offensive push in Kharkiv oblast.
Lysychansk was taken on 5th of July, then until today RF and UAF dug themselves in 10-15 km West of Lysyschansk. The RF had already redeployed large formations from the Kharkiv front (starting in May) down to Luhansk Oblast to support it's attack onto Sievierdonesk and Lysychansk. Therefore exposing the 7000km2 towards a UAF attack that resulted in taking back e.g. Lyman on 2nd of October. Since the RF did not have the forces to take Kharkiv and Lysychansk/Sievierdonesk - holding on to those 7000km2 where the RF had already pulled out most of it's forces made no sense.
As such the UAF got an easy victory - and is now committed towards reinforcing troops in a 7000km2 area that is of no strategic value - unless the UAF could push through to the Troitske - Svatove - Kremina front-line or even further towards e.g. Starobilsk. (the latter would indeed be a strategic victory) towards the liberation of Ukraine.
Of course they planned to seize Sloviansk-Kramatorsk agglomeration. Otherwise, why they tried to seize Barvinkove?
No, the RF never had the resources to do that - but the RF trick/feint worked - since Zelinsky ordered the UAF out of the Lysychansk pocket and ordered the civilian evacuation of Sloviansk.