We don’t have enough information to answer.
I general, yes, you should not be driving beyond the limits of your ability to perceive a safe path ahead, but the world is a big, varied place and perception can be tricked. You can do all the right things and still be the victim of and accident where the unusual or deceptive appearance of the path ahead and the weirdness of human perception collide and conspire to create something that confounds your best efforts at doing it right.
I’m thinking of a road near me where you come over the brow of a hill and see the road stretch out directly ahead of you for miles in a perfect straight line (it’s an old Roman road). Concealed in a dip in the landscape is a sharp left turn of the road you’re actually driving on. The bit that looks like it goes straight ahead isn’t connected like it appears to be.
Now sure, you shouldn’t be driving so fast that the sharp left would be a problem, if you know about the sharp left, but all of what your eyes tell you is ‘straight, clear road ahead’