For the most part yeah but does depend on scale. For Java there are lower cost migration pathways like native compilation anyway if that does become your concern