Can babies sense pregnancy?

How do they react when they know you're pregnant?
​Happen to bump into my old friend & her baby kept smiling to me and stop crying when he sees me or when i carry him. She said it was not common as usually he will cry when seeing strangers.
​Is it a sign that I might be pg? But babies do like me a lot as well..