Can keep the" / var / lib / docker "folder and move it In the new server?

Good evening,
My docker does not want to start anymore due to updates on my server; “Can not connect to the Docker daemon at unix: ///var/run/docker.sock Is the docker daemon running”
“I have a problem with rdpx also so I have to reinstall the server and keep my contents and image, since I can not start docking, I can keep the” / var / lib / docker "folder and move it In the new server?
thank you in advance