To best answer this question, I would need to know the size of you tank and a photo would be helpful too (to see the layout of the tank)
Right off the bat though I would not recommend it. People definitely do it, but imo, it's not worth the risk. You can easily run into bad situations with aggression (especially between gobies if they are fighting over a shrimp). You might be able to pull it off it they are both pre-paired, but there's just some risk that comes with that (especially if the tank is smaller) There are a lot of symbiotic relationships in the saltwater hobby, but there are so many, that I would need to know your tank size and the layout to really give a good recommendation. I mean obviously, you can do a pair of clowns and/or an anemone, but there's also slightly more advanced stuff like the long spine sea urchin and the banggai cardinal if you want to maybe get into a bit of breeding and urchin stuff, or there's crabs that have relationships with anemones, but there isn't really anything super similar to the shrimp/goby relationship.
*also, I don't know if you know this, but to try and find previous threads on a topic, you can enter keywords on the specific topic into the search bar on the top right.*
heres a previous thread that might help you out:
https://www.reef2reef.com/threads/will-two-pistol-shrimp-added-at-the-same-time-fight.752521/