The above two answers don't cover the differences between Colt and other mil spec assys, and the usual aftermarket pieces, like Bushmaster, Rock River, etc., and the answer to your question depends a great deal on wht type you have on your rifle currently, and wht type you're trying to mount.
The Colt and other milspec types all use the same length tube, though the number of detent hole my vary. A current type M4 butt will therefor be longer than the tube, so if your piece has that characteristic, it's a milspec type. If the tube on your M4 stock comes to the end of the butt piece when retracted, it's a commercial unit.
If it is a commercial unit, and the earlier type you bought is also an aftermarket unit, then Doc Holiday's comments are accurate, and the stock piece will go on the tube, but the tube will stick out the back in full retraction. If the 6 position tube is milspec, and the aftermarket unit is commercial, the stock piece will fit w/o sticking out the back but the stock will be loose and rattle.
Finally, if the replacement unit is Colt, and the 6 position tube is commercial, the stock piece won't fit on the tube.
I think that covers all the possibilities, though I do wonder why you just didn't try it out for yourself
.