Can you have a dash in a URL?

Yes, it is allowed but not advisable from an SEO standpoint. Using a hyphen in your URLs is recommended by Google because it makes your website easy to read for humans. As an end result, this means that your site will place better on search engines.

For More Information Please Refer: