Yes, this could be an effective method to get a clearer idea about the state of connectivity and latency. 502 errors often reflect a delay related to particular IP addresses. The test can help identify them.