Yes, very closely, might I add. You see, Namine is Kairi's nobody and is a direct product of Kairi's heart when it was released in KH1. This is why Namine takes on a very similar physical appearance to Kairi, only with lighter hair, eyes, and a ghostly appearance. It's also worth noting that she has an equally strong connection to Sora as they are linked through body and soul.