What is going to happen when I remove the master cylinder?

Take it with you to the store where you are buying the plug and get the correct part for what you are trying to do. It may have to be something special to mate with the small cone inside the block that the brake line fits over. You can't just thread something in there with a flat bottom.The fluid could leak past the threads if you do that.