Depends on which tool you're using for mod management. In the case of OBMM, if another mod uses the same file it won't remove the file, although the installed version will still be the most recent version that was installed. In other words, if you install mod #1, then mod #2 overwrites mod #1's files, and you then uninstall mod #2, the files that mod #1 shares will remain but it will still be the version used by mod #2 as opposed to mod #1 (since you overwrote them).
In the case of BAIN, I believe it works similarly except that BAIN will actually replace the previously overwritten files from the package for mod #1 when you uninstall mod #2.