will bettas and ghost shrimps get alone?

betta and ghost shrimp will get along with eachother if the fish is well fed and there are places for both to have cover etc.
 
Mine get along just fine. There are 5 ghost shrimp in my 10g with my male betta. About as many in the 18g with the female betta. The ten has almost no coverage because I'm growing all the plants from bulbs and cuttings, the 18 has lots. Neither tank has any problem with betta-shrimp aggression.
 
If the betta is in a fishbowl or other small tank be sure to cover it with a piece of screen, I have found that ghost shrimp can be notorious jumpers!
 
AquariaCentral.com