Yes, shia didnt exist, and sunni didnt ethier.
As for ali being the 4th, this is where shia sunni debate. Am debating him being first.