Family doctor or obgyn

Can your family doctor give you a Pap smear?