Are hyphens OK in domain names?

The important thing to know is that: Hyphens are allowed in domain names themselves, as well as subdomains and subfolders. … Underscores are not allowed in domain names, but are allowed in subfolders. You can often see URLs like www.example.com/sub_folder/ that work just fine.

For More Information Please Refer: https://www.seoblog.com/hyphen-dash-hurt-seo/