Yes, but since it was initially created I believe a lot of it has been rewritten. Eg, the filesystem. I suspect the memory system is different these days too, since macOS handles compressed memory quite differently (though not sure how that gets implemented under the hood).
FreeBSD is like a great grandparent, related but still very different.
FreeBSD is like a great grandparent, related but still very different.