Yes. Provided you had access to the original source code. Pheonix technologies did this with the IBM bios.