Yes and no. One of the computers can have a server installed on it that runs only on your local network. Or you can have another computer on your local network with a server installed on it there that you both network into but then it's not "localhost". Or you can network into your other devs computer while he works on the files on his computer as "localhost".