It wouldn't be 100% wrong, but if I've understood you correctly, it would be better to apply "if" (or "when") to both subordinate clauses: "We use this phrase if / when we don't know someone and we haven't met them before."
The structure is known as the "zero conditional", if you'd like to google it.