SHA3-256 this means the hash will be of 256 bits in length. Is this correct?
Yes, that is correct - exactly the same as SHA2-256 means that hash has an output of 256 bits.
But, then, what does the 256 mean for the XOF SHAKE256?
Obviously, that's not the output length (that's up to the application). Instead, it is the security level. That is, the amount of effort required to break the various standard security goals (preimage, second preimage and collision) is (barring some cryptanalytic advancement) about $2^{256}$ permutations (or inverse permutation) evaluations. This security level is essentially the capacity (state size minus the block size), divided by two.
One surprising thing about SHAKE is that collision attacks aren't that much easier than second preimage attacks; this is not true with SHA-2, where collision attacks appear to be much easier (if still infeasible). This happens because, for SHAKE, we can do an internal collision attack on the capacity bits, using the invertibility of the permutation for one of the directions; the effort required for this internal collision attack turns out to be about the same as a standard collision attack against the full hash function.