If you need to control your mouse with the cam in your application then the answer is yes.
If you want it for the window manager level, then no.
For the later you will basically need to write a driver that will replace the normal mouse device driver.