I have been using an iMac in a household with pets with no problems since 2007. Just be vigilant and dust underneath it (when it is turned off of course) every couple of weeks and you will be fine.
If you are at all concerned with dust from a health perspective, you can get free-standing air filters/ionisers at many home appliance stores and e-shops.