Having Two Domains Pointing to the same wordpress Site

Hi,
Is it ok to have two domains pointing to the same wordpress site or can this hurt a site’s SEO ranking?