Moving from an AMO-hosted extension to a self-hosted extension

I was wondering what would happen if a user attempted to install a self-hosted extension having already installed a version from AMO? Would the self-hosted version replace the hosted version, and would it therefore attempt to retrieve updates from the self-hosted update_url?

Thanks

Yes, the new install overrides the previous one.