100%.. but any solution has to ensure Russia aren't back in 10 years for more, Ukraine will have to agree to give up land, There will also have to be guarantees of protection from the west for Ukraine. Right now I don't think either side would agree to these conditions.
I dont think Russia gonna quit this war any time soon, they are on the up and having initiative, thousands of people (mostly from minorities from far east and Caucus) getting "silently" mobilized every month, war economy in full swing, international isolation also not working considering two by far largest countries in the world freely trading with them (among many others).
They need to be defeated on the battlefield clearly to make them back off, unfortunately looks like that window passed last year with that failed counter-offensive, and considering how many troubles Ukraine got with manpower, not to mention possibility of Trump re-election, question is will they ever again be in position to mount large scale counter-attack.
Cause this war of attrition that slowly bleeding Ukraine against opponent almost 5 time its size (in population) is just not the way.