Does DirtyPriceFromYield compute yield to maturity?

Does the function YieldFromDirtyPrice in the DiscountingFixedCouponBondProductPricer compute Yield to Maturity?