Yes, nowadays with Panama, and before Rust was around, JNA was already there so using JNI wasn't strictly necessary.