Yes, the visa in the passports are the same.
However, each person has a COPR (Certificate of Permanent Residence) which you receive when you are approved. On the COPR, it says who is the principal and who is the dependent, so the immigration officer will know.
The principal doesn't need to be present when the dependents land, but the principal must land before, if not at the same time as the dependents.