engine swap on 1990 Chevrolet Blazer

is it legal to swap an 1993 454ci into a 1988 vehicle that originally came with a 350ci

Asked by for the 1990 Chevrolet Blazer
Its legal, did it in the days of old when swapping out parts. get it from a "reputable" salvage yard or a car thats not on the road with a clean title.