Yes, but that piece of German legislation is (IIRC) specifically concerned with websites and not domains so has nothing to do with whois - which I think is the previous poster's point in distinguishing between the two. It does not dictate putting correct (or any) information in whois, nor does putting correct information into whois data satisfy (or otherwise release site owners from) its requirement to include correct contact details on your site if it has any commercial nature.
It‘s concerned with publishing, because that‘s where it originally comes from, centuries ago. People distributing newspapers, and earlier, flyers and pamphlets needed and still need to name a responsible person.
This person sometimes gets called ironically „Sitzredakteur“. „Sitting editor“. Not because he is currently the editor, as in „sitting president“, but because he‘s the one who is going to sit in prison.