Pink eye

Ne
One of my friends daughter has a infection and its pink eye, they came  to visit yesterday, I am expecting my very first baby and I am very concerned, the little girl is sweet as she can be and likes to hug me and all that!  but I might have said something that made my friends uncomfortable, since the little girl would not stop hugging me I told her that I didn't want to hug her that much because I was afraid to get pink eye, my friends reaction was quick, she told me it wasn't a big deal but that she understands as a first time mom that I am scared, but I could totally tell that she's was kinda upset, she immediately told her daughter not to get near me, was I mean or I did right?