The two sentences do mean the same, and both are correct, but as Qcumber points out, "having" is the familiar expression.
I usually only see "taking" in reference to where the meal is being eaten, as in, "I am taking dinner in the study." It's still old-fashioned, though.