SD Card detect switch circuit diagram
Yes.  When the card is inserted, then the switch will be closed from detect to common.
When the write protect is off, then that switch will be closed, and connected to common.

When the common is connected to ground and the switches are used with pull-up resistors it gives the cpu a digital signal for those two states.