It's a drop-in replacement, but you still have to tell the build system to have it use an alternative linker instead of the default one, unless you replace /usr/bin/ld with mold entirely.
(I tend to prefix PATH with the folder I build it into for the specific project I need it for)