Is this drain configuration okay?
That trap is prone to siphoning.  Against code.

The critical trap arm length prevents the air path from the vent to the trap from being blocked.  If the air path is blocked then the trap can siphon.  The air path from the stack to your trap can be blocked given the weird 90s you have in that configuration.

See image B:

https://terrylove.com/forums/index.php?attachments/fixture_arm-jpg.12270/