Does Corsair Vengeance LPX 16GB DDR4 3000MHz CL15 work with an i5-8400 on a Z370 pro4?

Aug 13, 2018
3
0
10
Yeah, so my question is in the title. I bought this dual channel kit as it was on a pretty good sale offer but now I am unsure wether it will work or not (I am building a PC on parts and I only had money for one part and this is the one I chose as it was on sale). Should I return it in order to buy a Corsair Vengeance RGB LED 16GB DDR4 2666MHz CL16 Dual Channel Kit or...? Mind you that this 3000 MHz one was way cheaper than the 2666 one currently is.