When done poorly, yes it can hurt your SEO. But professional web development companies have the necessary skillset to migrate your website without damaging your rankings by fixing redirect links, avoiding duplicate content and such steps.