This is worth checking with anyone you hire, because it is often not the case. Some studios keep the site on their own account or their own platform, which means leaving costs you the website. Some license the design rather than transferring it.
Our version is deliberately boring: the repository, the content, the deployment details and the documentation are handed over, and nothing about our arrangement depends on you being unable to leave.