What happens if someone has a latex allergy, can you duct tape their mouth shut?

Never. You should never duct tape someone's mouth shut, even if they are not allergic to latex. People with severe allergies in the nose might not be able to breathe at all if you do this. Not all tapes or adhesives have latex, but you would have to find out from individual manufacturer.