As others have said, it depends on individual fish. I have two Amano shrimp in a small 2g column tank with my betta and he would flare at them and "bully" them for the first few days but they're pretty ok now.
I've found with experience that the best way for a peaceful co-existence to occur, you need to introduce the shrimp with the lights out. I remove Clark from the tank and clean it, then put him back in after I've acclimated the shrimp and put them in. Once everyone is in the tank, I leave the lights out until the next day and revert back to the timer on the light for control. Seems to work pretty well.