Do disconnected nodes get built or compiled?

I’m working on a project that is taking a different direction for a time but may come back to an original goal. As such I’d like to leave some of the old nodes in place for later use but do not wish for them to cost me time in compiling or building. If a node is not connected to an exec does it still get compiled or built? An example would be a print string with a string tied to it perhaps from a node that is in use but no exec to the print string itself.