Yes, different brands doesn't really make a difference. As long as they are both DDR3 or both DDR4 it will work!
They will only run on the speed of the lowest speed RAM stick.
Most people do recommend the same brand and speed and capacity for the best performance, but this isn't necessary.