Yes, but you can minimise any chance of this by fitting the barbell so that the bottom ball is the one which screws on (fit from the top) so if it does unscrew you are less likely to swallow the ball.Check out the barbell:
Staright Barbells
Curved Barbells