Will a CMS migration hurt SEO?

It can, and most migrations do see a short-term dip. A clean migration recovers in four to eight weeks. A migration without a complete redirect map, or one that changes URL structure without 301s, can lose rankings permanently. The difference is phase one planning, not platform choice.