Do you have to keep everyone out of the pool while it is being shocked? If so, for how long?

I'm very new, so please be forgiving!

Kath