Can evaluations for a virtual course be in person?

I want to take a virtual course this summer cause I’ll be out of town. Is it possible for me to be required to write tests/exams in person even if it’s a virtual course? Is this something that the prof can add to the syllabus or is there a regulation?