Sentence 1: This was resolved with the Ostrów agreement -- Jogaila became Grand Prince of Lithuania , while Vytautas retained the rights of an overlord .
Sentence 2: This was solved with the Ostrów agreement -- Vytautas became Grand Duke of Lithuania , while Jogaila retained the rights of an overlord .
Question: Do Sentence 1 and Sentence 2 express the same meaning? Yes or No?