Yes, and in fact some research has suggested that eDNA can persist longer in sediments than in water. However, sampling sediments should be avoided if trying to infer very recent species occupancy.