Self signed certificate on localhost

Hello,

If I use Nextcloud only on local (no reverse proxy, etc), can I use the self certificate inside my browser ? Is it dangerous? Does this create a security breach?

Thank you