I forgot the passphrase to open the wallet to send funds or change passphrase to the locked wallet, but I do have the key for the wallet.
It sounds like you might be using Bitcoin Core, but I'm still not sure so I'll make some assumptions. If so, then yes, you can recover your wallet with the private key. I'm also assuming you have a single private key you'll want to import into a new wallet. Depending on the version of Bitcoin Core you're using (21 and later, IIRC,) it may not allow you to do so without jumping through some hoops. I recently posted the method for doing so here:
https://bitcointalk.org/index.php?topic=5545286.msg65435592#msg65435592