Is it possible to make collider collide only with certain objects?

Basically, the title says it all.
Is it possible to make collider collide only with certain objects? Through tags, collision checks or other?

From the documentation

Basically you set up collison layers, and add objects to the layers and define the interaction between layers.