Indeed it is. You will need a text file in your root directory (the FTP directory that is the same as the name of your website), with a filename of .htaccess that contains the following:
deny from xxx.xxx.xxx.xxxObviously, you replaces the XXXs with the IP address you wish to ban. The DreamHost wiki has more information on .htaccess, including how to block specific domains, etc.
Keystone Websites | si-blog