Depends on the motherboard AND on whether or not those modules will "play nice" together or not. No way to know for sure on the second one without trying, and no way to know on the first one without knowing the motherboard model.
Likely they CAN work, but the faster module will be reduced to the speed of the slower module.