Technically, if cell 2 is zero, the answer would be zero. In this case, you really only need to make sure that the denominator is <> zero for a valid result.
=IF(B1<>0,C1/B1,0)
Your test has a chance to fail. For example if cell 1 is zero, the calculation Cell 2 / Cell 1 would yeild #DIV/0!