I don't think anyone can predict fish behaviour, it depends on the fish. Having said that, at 6cm they aren't large fish and small Rainbowfish aren't known for eating shrimp. I think you'll be ok, but you can only try it and see what happens. I've never kept them though.