does ytm change over time?
You are correct, the yield to maturity changes with the bond price. Once a bonds is purchased, the deal is done and the YTM is fixed for that buyer at that price and that point. Once the purchase is done, the YTM does not change, unless of course something extreme happens, such as the issuer going into default.