Well... faster RAM should... go faster. Obviously the machine has to handle it otherwise is just a useless and costly expense. Apple states that RAM needs to be MINIMUM 2400mhz and that lets you imagine you could go higher. As far as I understand these should be the rules...
- RAM should be always changed in couples. better should be that ALL 4 the rams are the same
- RAM will run at the speed of the lowest RAM (so if you have 2x 2400 AND 2x 3200 it will run at 2400)
- RAM will run at the maximum speed allowed by the motherboard chipset
I found info online that Intel MB have a maximum of 2.666mhz but can be (in the Win/PC world) overclocked to 3.000mhz. Probably not possible in the Mac world. I also found somebody that managed to get iMac 2017 to run at 2.666mhz (with 3.000mhz ram). This probably means that iMac 2017 handles a MINIMUM of 2.400mhz and a MAXIMUM of 2.666mhz (that is the maximum Intel chipset allows without overclocking)...
... But it would be nice to have an expert's word on this