If you have X licenses(X is the number of cores) for one node and software assurance(SA) for the other node, OR
X licenses for one node and another X licenses for the other node
, you are fine.
If you only have X licenses for one node, your 2-node cluster is not license compliant.
Please check with your license vendor/Microsoft partner.