No it doesn’t, scaling is local.
Make sure to follow the exact code, it involves using the world matrix (I haven’t tried it myself):