Yes, a ghost shrimp can live with a betta. If the tank is large enough and they rarely interact with each other, there won’t be any problems with keeping them together. However, if the tank isn’t too large or if the betta is extremely aggressive, the betta might attack your ghost shrimp, injuring it and causing it to be stressed.
If you decide to keep ghost shrimp and bettas together, you should always monitor the tank’s dynamics and be prepared to lose your ghost shrimp.
If you’re unsure about keeping your ghost shrimp with a betta, here are some excellent tankmates you should consider instead: