No, they are not the same. Though hostnames and IP addresses are both ways of identifying a device on a network, they are two different identifiers. As a result, you can have a different IP address and hostname. Furthermore, your hostname can include letters while the IP address will merely be numbered.