Only if the test was started at equal preload.
A 2 inch shorter spring with a 2 inch spacer may not be exactly the same.
The 2 percent that most guarantee the spring rate comes into play. Plus or minus.
If they start at the same load, travel the same 2.5 inches, and end 25 lbs different, springs are a different rate.