It's a tricky question, but ultimately I think it's appropriate as long as the epidemic is severe enough and it is not for an extended amount of time. While personal freedom is important, public health is necessary for personal freedom. Of course, it can be too extreme, but it is necessary.