Dogs do lick their wounds, and they rarely get infected.
However, according to the pet-info website Paw Nation, it's not because dog saliva is like antiseptic.
It's because a dog's tongue is rough, and that helps to remove contaminants from an open wound.