Is it OK to mix dark and light backgrounds in an app?

I am designing an app that is 90% light themed. Except for this one action where user has to create a document of sorts and has to fill in some information. I felt that this was a crucial part of the app and therefore did a navy blue background so as to grab the users attention. It has white input elements for contrast. And this page is like a mega-menu but is of page height.

Is this approach OK?