yes but in a constitutional monarchy, the constitution could stipulate that the position of monarch be voted in rather than inherited.
I mean, yes, knowing how power corrupts, I'm sure we would eventually be able to connect dots between one monarch and the next. But that's not really a problem...