Yes Kotlin can be used to write desktop applications (but then might D or Rust be even better); no Kotlin is not just for Android apps. As other posters have mentioned, JVM apps can run most places, including the desktop. Also, Kotlin has a version that uses llvm called Kotlin/Native.