It's incredibly common for contracts to choose the rules that are to be applied in court or arbitration.
The law of foreign countries will even be used, and courts tend to not have any problem with this.