I think perhaps you could become elected, but you can't inherit normally — someone else from your family will get to be the heir, e.g. your younger brother or son instead.
But, doges can still press their claims or even be installed as feudal kings or emperors by victorious rebel factions inside feudal kingdoms. For example once upon a time my doge of Pisa was made king of France that way.