firstly the 'contents' are not in the domain. The contents are located with the hosting server.
Secondly only if someone sells you an entire website, domain and hosting, not if you buy an expired domain, no.
A domain name is just a IP address and name. Not a website.