You can automatically join, or join and lock a newly created architectural wall with the adjacent one.
In both cases, any inserted elements will perforate both walls.
The Auto Join and Auto Join & Lock options are only available while using the architectural wall tool to place walls. They are not available for creating structural walls or face walls.
Newly created stacked walls and curtain walls cannot auto join or lock to existing walls using this feature. If you select Pick Faces in the draw gallery when creating an architectural wall, then the Auto Join & Lock tool will be automatically disabled. The existing adjacent walls in previous Revit versions will not automatically join when upgrading to the new version.
Newly created slanted wall cannot align with the existing slanted or tapered wall, so the (Auto Join & Lock) does not work for it. You can use (Auto Join) in this case.