Of course. The problem stems from believing that the interests of party and country are the same thing. Political parties are built to gain power, not to exercise it. So while it is May's job to run the country it is the Party Chairman's job to win the next election.
This was not her decision alone.