Sure, the basic idea is the same, but since your system is now periodic in Z, the relevant boundary condition (Dirichlet) should be applied on the X/Y boundaries. You can try without ghost atoms first, they are not absolutely necessary, it's just a way to get the electron density to not end so abruptly on the surface.
Or, as an alternative, you can always extend the range of the basis set; export the script using "Show defaults" in the Script Generator to see how the basis set radius is defined.
If you want to use ghost atoms, place a couple of them close to the surface, around the wire. There's no rule where they must be (except they must be within coupling range of the other atoms, of course), it's just a way to place some density in the vacuum.