Well, yes, but:
Z87 is the first-gen Haswell (Socket 1150) chipset.
Many newer chips (second gen Haswell) have been released which wouldn't be supported without a BIOS update. So if you bought old stock that had left the factory pre-update and a newer CPU (like, for instance, an i5-4690) it might not work without a BIOS update first, which you could only apply with the help of a first-gen Haswell CPU.
So you'll want to make sure it either has the latest BIOS update before you buy, or make sure that the CPU you get has a mid or late 2013 launch date. (
Example.)
Or you could just get a
Z97 motherboard. (They'll support newer Haswell CPUs out of the box, no risk.)