Yes it is compatible, although I do not personally recommend Haswell if you are considering any overclock on the CPU, as they heat up too much. In that situation, 3rd generation is better.
Of course, if you do change to 3rd generation then the motherboard won't fit. You'll need a motherboard that has a 1155 socket for the 3rd generation intel CPUs.