It depends on what you mean by that. An MCC doesn’t prevent you from refinancing. But the certificate will stop being valid if you do. In other words, you won’t be able to claim your mortgage tax credit after you refinance.