Yes, blocking IP addresses by country will prevent brute force attacks. Countries that are known for high rates of cybercrime will no longer be a threat, and greatly reduce the amount of failed login attempts. However, it will not eliminate the problem completely and additional security measures are needed.