Yes, you can block IP addresses in WordPress by yourself. You need to find the said IP address first. Once you do that, use the comments blacklisting option available on your WordPress dashboard. Alternatively, the IP blocker on cPanel or .htaccess files are some other good options to ban IP addresses in WordPress manually. You can also blacklist IPs manually via your security plugin.