Should I follow datamatrix data and print label data are same?

Due to some limitations, we are thinking that, use two different codes on each product one is for datamatrix generation and another one is for print o

Due to some limitations, we are thinking that, use two different codes on each product one is for datamatrix generation and another one is for print on lebel.

Is this correct approch and permitted by law?

or:Due to some limitations, we are thinking that, use two different codes on each product one is for datamatrix generation and another one is for print on lebel.Is this correct approch and permitted by law?

Tags:generation,code,