Is it cheap or really expensive on CPU? Like, would calling it a hundred times a second be expensive? Or would it be easy?
This has been asked before
https://www.google.co.uk/search?q=unity+raycast+expensive
Physics engines are designed to handle raycasts (duh) but basically, the only way to know for sure is to try it, and profile your performance