If one always thinks of something, he certainly gets a related body after death.
Maharaja Agnidhra was always thinking of
Pitrloka, the place where his wife had returned. Therefore after his death he achieved that same planet, probably to live with her again.
Bhagavad-gita also says:
"Whatever state of being one remembers when he quits his body, that state he will attain without fail."
(Bg. 8.6) We can naturally conclude that if we always think of
Krsna or become fully Krsna conscious, we can be promoted to the planet of
Goloka Vrndavana, where Krsna eternally lives.