Nico Robin joined the Straw Hats during the post-arabasta arc but she left during the Water Seven arc. Shortly after that Luffy and co rescued her back in the next arc which is the Ennies Lobby arc.