It should be fine to detect anything infront of the character, you will need to cast enough distance to account for the chracters next step though
If you are moving fast enough such that you would cross a distance of 2 units in the next step, but only cast a ray 1 unit then it could miss something