The short answer is: Yes, you can use a webcam. There are numerous postings discussing drivers.
The long answer is: I don't necessarily recommend it. It really depends what you are trying to do. It is a low price solution, but you get what you pay for. You will have higher noise, no field of view options, and no selection of lens focal length. Light levels will vary and the webcam may or may not automatically compensate for this. If you just want to display an image, the webcam will work great. If you want to analyze the image, you may not get very good results. Image calibration would probably be difficult also.
Bruce
Bruce Ammons
Ammons Engineering