Is it true that if a baby did not drink breast milk in infancy, his immune system becomes weaker later in life?

Brest fed babies. Let me put it differently.The babies who are breast fed get less infections then formula fed during childhood as they aquire some antibodies from the mother through the breast milk.Later in life there does not seem to be any difference .