Yes, server migration can affect SEO. It is also dependent on the type of change that is made to the server and how it is executed.
If websites are down for a prolonged time, it can result in a loss of traffic and in turn, lower Google rankings.
Server migrations are generally a difficult process due to the potential for collateral damage (such as losing website traffic).
It is important to do your research before implementing this change to ensure that you are making it with the intention of gaining overall better search engine rankings.
If things move well, it can help you improve your website's loading time and overall user experience which benefits SEO.
P.S:
You are currently on the Digital Marketing Forum page; for more information on a variety of topics that may be helpful to you, please visit Blog Posts (button below) and also share any content post you love with your network.
[If you have any specific questions in mind, please drop a mail and I will answer through a post at the earliest possible time]. Check this forum frequently for fresh posts.