Only if the test is sufficiently accurate to rule out transmission. Even molecular tests can't reliably predict that.