No, it'll work fine, although someone else seeing the code may scratch their head for a bit. I suspect there may be a better way to do it but I don't understand the situation enough to make a recommendation.
But yes, you're fine, genealogy software is always going to be a self-referential nightmare. I've worked on some before and I remember it being weird and loopy and stuff.