Should i config /etc/hosts when install a cluster with kubeadm

Cluster information:

Kubernetes version: 1.23
Cloud being used: bare-meta
Installation method:kubeadm
Host OS: ubuntu 20.04
CNI and version:
CRI and version:

i want know should i config /etc/hosts when install a cluster with kubeadm, the official docs not say i should config /etc/hosts for nodename, if i should config this ,and why?

like this

cat >> /etc/hosts << EOF
192.168.72.30 k8smaster
192.168.72.31 k8snode01
192.168.72.32 k8snode02
EOF