Apt sources question

Should I update my apt sources as opposed to an Unbuntu install via: sudo wget -qO- https://get.docker.com/ | sh

Visit the following URL link for details on apt sources:
https://docs.docker.com/engine/installation/linux/ubuntulinux/