They don't always match - but they mostly do. When they match, it's a quite likely confirmation that they belong together. If they don't match, it could be that it was made like that, or that it's an assembly of sorts afterwards.
I don't think anyone knows 100% what the number codes mean, but...