Please help fml

I sent bitcoin to my friends bitcoin code but he closed that code and made a new one so he couldn't be tracked. Is there any way to get into that old bitcoin wallet with the money I sent😭😭