Yes, I have a site where I do this now. Let me know if it causes errors or does not redirect. I have had to disable it in some cases, like on the menu editor, won’t work there. Seems to work everywhere else so far.
I can’t guarantee that it will solve anything.
You said originally that you are getting a 500 server error. Do you have debugging on for the site to maybe give more relevant errors? https://codex.wordpress.org/WP_DEBUG