Um, it seemed real coz Anjali mustve been scared for their baby. Maybe she felt it was time to let Kavya in, he was there when she woke up in hospital, was quite worried and did cry then. Maybe Anjali felt the need to be consoled (after Pammi's remarks) and in a way, reassure Kavya (poor guys getting an overload of bad news). As Anjali sees Kavya showing more interest in the child, she will rightfully grant him a certain place in her babys life. Therefore, YES! the hug couldve been real for many reasons, it looked so.
On the other hand, Anjali would not have much of a motive to go upto Kavya and do so otherwise. Course, she could want him not to be completely engulfed by false hopes of Pammi having mended her ways, seeing as thats somewhat impossible. AND Nitya hinting that Pammi/Kavyas child is the only thing that may keep them together has me worried sick! I DO NOT want Pammi getting pregnant for real! Please God and Ekta, spare us that!