Does fostering a child have an affect on attachment with the parents who permanently adopt them in the future?

Does fostering a child have an affect on attachment with the parents who permanently adopt them in the future?