Pet stores do that all the time just to save space. In the wild.. I'm guessing it would happen sometimes, but they generally don't want to be around eachother unless it's breeding time.

Balls in pet stores don't do very well in general. And get ready for a huge long thread about the pangs of co-habitating ball pythons.