Depends on what you want to do. Do you want live streaming, or recording video, or taking a photo every minute, or motion detection and alerts etc.
Yes, you could use a Raspberry Pi, either with the Pi camera, or with a USB webcam.
For software, you could try Motion. It can do motion detection and/or live streaming. Maybe a bit complicated to setup, but there are a few guides.
Or if you just want a photo every minute, you could setup Fswebcam with a cron job.