A puppy follows its mother wherever she goes displayed a behavior called a imprinting
When studying animals, imprinting is a term used to describe the capabilities of an organism to recognize its parents and develop habitual trust with their perceived parents
hope this helps