Barcode duplication

Hello Commcare developers, Is there a possibility to restrict mobile users from inputting a barcode number that already exists in the system during the sample collection process in order to minimize barcode duplication?