I believe that in this case, it would also be possible to say Я думаю купить ему галстук. (That is, with an infinitive after думаю, instead of a future-tense verb.)

It's like "I'm thinking of...