Strictly no, because the yield curve rates are the fixed rates per annum quoted now, for loans lasting 2 year, or 3 years etc.. So it is the forward rates that we need.
However, although you would have lost marks using the spot yield curve rates, I do not think you would have lost too many marks.