Do infants in with parents in separate house holds know the difference??

Desss
I was just wondering does my 10 month old know the difference between mommy and daddy? When I have him he says "DADDY" repeatedly, but I figured it because it's one of the more simple words to say at his age. Occasionally when I'd take him to see his dad, he will get hyper or start whining to get to him because he cannot walk yet. But does he actually recognize who his MOM is and who his DAD is or is it just which ever male and female he sees the most he's become clingy to?