Not that I am aware of. There was talk about this being a potential thing on N64 with Banjo and Tooie but it never came to be.
I realized recently that you could actually test this -- with a sufficiently old N64 console, and two copies of Banjo Kazooie, you could use the cheat codes to unlock the hidden locations on one game, then swap over to the second copy. Theoretically, that should unlock them without having to use the cheat codes.
If I was a bit more motivated to spend the money, I'd try it myself and make a Youtube video about it!
Reference: https://www.raregamer.co.uk/rare-gamer-interviews-paul-macha...
e; actually I think it's not possible for a Banjo-Kazooie game to transfer to another Banjo-Kazooie game, the memory that it writes to is different from the one it reads from. https://tcrf.net/Banjo-Kazooie/Stop_N_Swop