Started maariv "Baruch Ata Ado..nai" and morphed into Bore Nefoshos

I just finished eating an orange and started davening Maariv . Said Baruch Ata Adonai and remebered I had not said Bore Nefoshos …so I continued on with Bore Nefoshos. Was is the right thing to do?
And if not, would I have to repeat Bore nefoshos after I finish maariv