Docker engine and docker machine on mac

Hi

I pretty new to docker. Im trying to get a grip of docker and docker machine. Right now I have created an image and a container of that image it is working very smoothly when I switch computer (have a repo with the docker file and src code). But Im now starting to be ready to deploy to a cloud service where they refer to docker machine.

So my question is can I have both docker engine and docker machine installed locally? And can someone very simplified explain the difference.

Thanks
piesod