The problem is that shrimp need a very stable tank so if you do add shrimp first you have to be sure the tank is very well cycled. But if you add shrimp first the bacteria in your tank will die back to just the level of handling the shrimp bioload which is very small. Then when you add fish, ammonia goes up and you may lose the shrimp. It can be done but for this reason it is tricky. And then after all that work... your fish may still just snack on them.
Basically any fish that gets big enough to do so will try to eat your shrimp. They will definitely eat the babies. If your tank is stuffed full of plants and hiding places a few might survive ... maybe.. but it’s unlikely if any fish is actively hunting them. I haven’t had them but from what I’ve read rams in particular have a reputation for hunting down shrimp so even the adults might not be safe though that comes down to the temperament of a particular fish.
If you’re going to place your hopes on shrimp outbreeding your fishes appetite I would probably go with cherries or another neocaridina shrimp. They’re hardier over a wider range of parameters and cheaper so if they become dinner it’s at least less of a financial loss.
You could always get the tank going with fish and then add a few small ghost shrimp to see if your fish hunt them down.