Yes, accessing Whois data is legal as it is considered public information. The purpose of Whois data is to provide transparency and accountability in domain ownership. However, it is important to use the information responsibly and for legitimate purposes.