Is it legal to quarantine someone who’s not sick?

Is it legal to quarantine someone who’s not sick?