I suspect not. It seems likely that such a policy would prevent any at-risk patients voluntarily testing, meaning they remain unaware of their HIV status and continue to spread the virus.
I'm not sure if there's research on this though - it would be interesting to see.