Question: Sentence 1: He's family.
Sentence 2: His family has lived in Massachusetts since the Mayflower.
Does family mean the same thing in these two sentences?
============
Answer: different meanings

Question: Sentence 1: The line of soldiers advanced with their bayonets fixed.
Sentence 2: In line with.
Does line mean the same thing in these two sentences?
============
Answer: different meanings

Question: Sentence 1: Law and order.
Sentence 2: The house is in order.
Does order mean the same thing in these two sentences?
============
Answer:
the same meaning