Interchangeable parts?

I have a 2006 Mazda 6 with a 3.0L V6 engine which needs a power steering pump and rack and pinion. I saw that a local scrapyard has a 2007 Mazda 6 however it is a 4 cyclinder engine. I believe the specs for the 2006 and 2007 model years are the same, would I be safe to use those parts?

The scrapyard should have access to an ‘interchange manual’ that’ll tell you. For the pump you could also check if they use the same part number on Rockauto. Maybe the rack, too.

just called they said the parts need to come from a V6 car and the 4 cylinder is not compatible. I was trying to avoid springing for a remanufactured part due to the high cost but a junkyard part is risky too I suppose. I may see if ford fusion parts would work