Install docker on home server

Hi I’m new to docker. I have home assistant working on my home server. I would like to install docker on my server without interfering with Home Assistant. is this possible and if so how do I do it