Yes...don't worry...untill you cras and you get to hear you were uninsured because of your illegal swap. Very handy.
Just because there may be a not so legal engine under the hood does not mean the car and driver are not insured. It only means it will not pass smog/emissions.