Silly question about herpes

A family member kissed their hands and then put their hand to my babies mouth. I don’t know if they have cold sores or anything. I didn’t see anything when they were here but I know that doesn’t matter for things to be spread.

If they do have herpes could my baby have it now? I’m so upset and worried. Ugh.