Can I connect my iPhone to my laptop to record more than my iPhone s memory can hold?

So, I need to record my bedroom while IIm sleeping, and I don't want to buy a video recorder, because I can't afford it. So! My big question is, can I plug my iPhone into my laptop and use it as a webcam(I don't have a webcam) and record the video straight to my laptop, because my phone won't hold 8 hours of video, obviously.

Of course you can't. Did you bought your phone yesterday or what?

Give this question to Steve Jobs