Hey @luccas welcome to the Nextcloud community
simple answer: not recommended!
https://github.com/nextcloud/all-in-one#how-to-run-nextcloud-locally-no-domain-wanted-or-wanting-intranet-access-within-your-lan