Match specs, not brands.

Usually, yes — as long as the soldered RAM and the new stick have the same speed, timings, and voltage.

Brand itself is rarely the issue.