Enable it and see if it works.
If it doesn't, disable it and rename
htaccess.txt on the server to
.htaccess , enable it again and see if it works.
If it doesn't, disable it and contact your host as it will require server changes as explained here:
https://xenforo.com/docs/xf2/options/#friendly-urls