Yes, if the candidate cannot perform a critical aspect of the job and no reasonable accommodation can be made without undue hardship, the employer is not obligated to hire them.