Is cgroup a type of namespace?

I am asking this because I have seen blogs talking as if cgroup and namespaces are different. However, in different linux commands , cgroup is considered as a type of namespace. For example,

```
% unshare --help | grep cgroup
 -C, --cgroup[=<file>]     unshare cgroup namespace
% lsns --help | grep cgroup
 -t, --type <name>      namespace type (mnt, net, ipc, user, pid, uts, cgroup)

```

What is actually going on here?