If you get two shrimp of the same species and similar size, it should be okay. Just be sure there's room for them to avoid each other if there's a problem.
Tiger pistols are a good species to keep with YWG, due to their size. I've seen pictures of two of those per goby, too.