I’ve done just that.
Both sets were the same make and model, apart from the capacity, but i was still concerned that they might not work together. That’s why i bought a 32gb kit, as i could have made do with that, had there been an issue.
Of course, even though mine worked, i cannot guarantee that yours will, but 48GB is definitely a valid configuration.