can i rebuy the ps3 game to get get back ps3 access after transferring my current ps3 acc to ps4?

or does it work only if i keep my ps3 acc and buy an ps4 copy ?