It is good to do a rotation at a site where you want to get a residency. Well, assuming you do well in that rotation 😉
That way they know what you are like to work with, what you do best and so on. Is it a guarentee you will or will not get a residency there.. no, not really, but it can help.