Is there a way to disable the collision checking between some links in an actor after loading a robot from URDF

Is there a way to disable the collision checking between some links in an actor (a robot) when the robot is loaded from a URDF? I saw another post saying that it is possible when the robot is loaded from MJCF by using the <pair> sets. Can we do similar things when it’s a URDF file?