They are the same set of rams, but still its better to always buy a set of 4 ram modules pack for guaranteed compatibility...
They should work fine anyways... the reason i say a pack is better because i have seen examples like corsair made a certain set of rams with different dies and the only way to know was knowing their versions beforehand and i am not just talking about model number... the same model of ram had hynix dies in one and samsung dies in one...