With a little web research and a high school physics book, you can calculate the critical angle of approach for deflection of a given projectile at a given velocity, however, the answer is pretty simple...
Any relatively flat shot CAN ricochet, whether it's off dirt, rocks, water, sand, etc. Use caution, and don't shoot in the general direction of things you don't want to put a bullet into.