If the course is scheduled as on-campus or hybrid and the syllabi is clear about taking the exam on-campus, yes. However, if a student cannot come to campus because they are ill or in quarantine, you should work with the student to find an alternative. If your course is remote or online, no.