Run "pkg update" and "pkg upgrade" with cronjob

Hi, is it possible to run these two commands with a cronjob? If so do I need additonal parameters like I would need on a dpkg system? (apt -y upgrade)
I have it actually as well in my cron:

pkg update && pkg upgrade -y

The options mentioned in above conf-file may also be helpful; but somehow they don't work for me.
I would suggest not doing this. How are you going to determine if services (or applications) need to be restarted after an update? Note that pkg(8) will not automagically restart services.