This is technically possible, but we do not recommend auto-updating Pi-hole. Some updates are breaking, and if you wake up in the morning with an update that doesn't meet your needs (and no backup) you will have a problem.
The dashboard will notify you when an update is available. Read the release notes, then if you want to update do so manually.