Maybe, it depends on the specific media you have. Some Apple install media will only install on the specific hardware type specified. Others are more flexible. You can try, but you are technically violating the license terms of the software you do have.