It can matter in terms of ratio. You wouldn't want a 48t outer with a low tooth count middle as the jump would be nasty. In terms of fit, a 110 BCD ring will fit a 110bcd spider, 5 arm of course as there is now a 4 arm 110bcd and even differences in that masking them incompatible with each other.