The quick answer is Yes. Here we explain how to do it:
The block is made from an ACL (access control list) generated with the tool Country IP Blocks, and inserted in this file.
How to block a country, continent or region with the .htaccess file
Open the tool Country IP Blocks. We will automatically see the list of countries or regions, in which we must check the ones we want to block; and then select Apache .htaccess deny and press the Create ACL button.
Now open the cPanel File Manager.
Open to edit the .htaccess file.
Paste the list obtained with the tool and save the changes by pressing the Save changes button.
There, with this you have blocked the country or region you wanted.
💡Keep in mind that the list you generated may vary over time, so we recommend updating it from time to time.