Yes, when used with an Apple Watch, Pillow is able to track your sleep cycles automatically. Just wear your Apple Watch while sleeping.
To ensure that Automatic sleep tracking is enabled, please:
Open Pillow on your iPhone
Tap on the Settings icon at the top right corner of the screen to access Pillow's Settings
Scroll down to find the "Automatic detection" switch and make sure it is ON