Yeah, that looks fine. Let me give you two examples or three:
1. Duchy of Greater Poland, fresh after Poland's change to HA was voted into law. The Duchess regnant had a daughter who was the duchess consort of Trebisond, mother of another doux. I somehow managed to have that doux finally inherit my Greater Poland, don't know on what principle. Reloaded.
2. County of Lubusz, same scenario with confusing female line succession, a Hungarian count made id.
3. An Arpad courtier and nephew of my king was in line to inherit the independent Duchy of Bavaria (held with the Duchy of Bohemia and Duchy or Tyrol in a biggish blob by a duchess regnant who was the wife of the previous Polish king). I didn't want any surprises, so I made him a baron in my kingdom of Poland. However, he inherited a county in Hungary, duly bringing it under my liege authority but then he was Hungarian count and the de iure Hungary did not have High Authority, which resulted in his succession as independent Duke of Bohemia and staying independent. Somehow he didn't go over to Hungary or drop his Polish barony to inherit in Hungary or anything like that when inheriting the higher title in Hungary, but when he inherited an even higher title that was independent, he became independent. But after reloading I made him count of Sandomierz in Poland. After inheriting that county in Hungary, Sandomierz was still his primary title. But somebody else was chosen to inherit in Bohemia.
4. I think I had some de Bourbon counts come over to my vassalage when inheriting my vassal in Iberia. But this is very complicated.