It depends on two factors.
First, the second memory module has to have similar characteristics to that of the first memory module in order for the modules to work together compatibly. Note that using a memory module even with the same make and part number as the other memory module is no guarantee that the two individual memory modules will be compatible with each other due to variations in module characteristics.
Ideally, to ensure inter-module compatibility, use of a dual channel kit is recommended since the two modules from the kit have been tested for and guaranteed to be compatible with each other and should work immediately without any issues.
Buying individual modules instead of a dual channel kit, there is a risk of...