Not a problem but you will need to ensure that the software it comes with has 'motion detection'.
A google search for a free one can come up trumps there.
I have used one in the past but now use a PIR one fixed outside.
PS. Still got that hat??...
Best phone camera 2017
Stunning new film posters by Hattie Stewart, Joe Cruz & more
iPad Pro 10.5in (2017) review
28 astuces pour profiter au mieux de votre iPhone