What do you mean? If somebody enters in the IP to your server it will redirect them to a domain.com instead? If so, yes. Use a .htaccess entry for redirect.
There is a ton of examples if you do a search: Google: htaccess redirect ip to domain
There is a ton of examples if you do a search: Google: htaccess redirect ip to domain