Well yes, it happened the same with Gordon Brown
In my view it solves a lot of problems, country doesn't need a lame duck prime minister and weeks of continued uncertainty. May was the overwhelming choice of Tory party MPs and probably would have won amongst the members anyway.
As a bonus she may be under pressure to call for an Autumn General Election, which will make the ridiculous spectacle of the Labour Leadership contest an irrelevance and means that miserable old fool Corbyn takes Labour into a general election where it will get resoundingly beaten.