Theoretically yes. You can write your go code and then compile it to a shared library, Kotlin native cinterop can automatically generate binding methods from the cgo header. On JVM you'll have to use JNI to call the go functions from kotlin. I believe there are also golang libraries for js/wasm interop. Then use expect/actual to bring it all together
Check out:
https://go.dev/wiki/cgo and
https://github.com/timob/jnigi
I've actually been interested in using go for writing JNI bindings as an alternative to C++
There's a gradle plugin to compile go sources but it seems to be no longer maintained unfortunately:
https://github.com/gogradle/gogradle