It is not a must for all the rugs in the room to match.  However, they should have closely blending colors for the room to look good.