The only problem is, the .MKV file may or may not be encoded to Blu-ray specifications. If it is not, some players may have problems with it.
If it is BD spec, you also need to swap more than an M2TS file. You must also replace the playlist, the CLIPINF and the back up version of those two files.