It does not, at least when editing a component, which is used by the project, but is not part of it.
I must admit that I rarely add units to a project (
Project Inspector) and haven't encountered any problems. If you mean a separate package, I'm not sure (unless it's included in the package's file list).
Generally, this is a compiler feature and shouldn't depend on the IDE. Include files ("
*.inc") are an exception due to their peculiarities (it seems the compiler doesn't store information about them).
Omitting their compilation caused me problems, and I had to add them to the project. A workaround was to modify the unit (update the modification date) in which they were included. But of course, doing this every time they were changed is counterproductive.