Data node & unicast hosts

Do data node required to have the below command in its *.yml?

discovery.zen.ping.unicast.hosts: ["master1","master2","master3"]

Yes, otherwise it cannot discover the other nodes.