Replacing chevy cobalt engine

The Cobalt had three possible engines, a 2.2 litre, a 2.4 litre, and 2.0 litre turbo. Are you sure that the used engine and harness is an exact match for the one in the car?