SB 3.32.10
ye yogino jita-marun-manaso virāgāḥ
tenaiva sākam amṛtaṁ puruṣaṁ purāṇaṁ
brahma pradhānam upayānty agatābhimānāḥ
By perfecting their yogic practice, yogīs can reach the highest planet, Brahmaloka, or Satyaloka, and after giving up their material bodies, they can enter into the body of Lord Brahmā. Because they are not directly devotees of the Lord, they cannot get liberation directly. They have to wait until Brahmā is liberated, and only then, along with Brahmā, are they also liberated. It is clear that as long as a living entity is a worshiper of a particular demigod, his consciousness is absorbed in thoughts of that demigod, and therefore he cannot get direct liberation, or entrance into the kingdom of God, nor can he merge into the impersonal effulgence of the Supreme Personality of Godhead. Such yogīs or demigod worshipers are subjected to the chance of taking birth again when there is again creation.
