How to Transfer a Domain from WordPress to Netlify?

My friend has been using a domain purchased through WordPress for a long time, and now I’ve developed a new website using React for him, which I plan to deploy on Netlify. Is there a way to transfer the domain from WordPress to Netlify?

I want to check the DNS on Netlify, but isn’t that only possible if I purchase a domain name?

You cannot transfer a domain to Netlify, see:
https://answers.netlify.com/t/support-guide-how-do-i-transfer-my-domain-name-to-or-away-from-netlify/186

The good news though, is that you don’t need to.

Your domain can be with any registrar.

If you want to use Netlify DNS you would follow this documentation:
https://docs.netlify.com/domains-https/netlify-dns/delegate-to-netlify/

If you want to use the existing DNS you would follow this documentation:
https://docs.netlify.com/domains-https/custom-domains/configure-external-dns/