Yes, it works together.
However, given you're getting Z270 you should get 16GB.
Give me a budget and intended use and i'll sort a list out for you.
Well, thanks for your response!! I'm planning on upgrading my cpu as my current mobo is having some issues, so I will upgrade to an i5 7600k (my current processor is a fx 8350). I'm trying to get the cpu, mobo and ram for about 400~450€ but i could go a bit higher. And yes I have also thought that getting 16 would be the best option. I have seen some gskill ram 2x8gb at 3000mhz maybe that could work? Anyway thank you for all your help!
(Im from Spain if it os needed for the budget)