Hi I am new to bitcoin and need to know if I can recover coins I have sent out to a address I can’t access or locate
You could contact the owner of the address (you mentioned that you sent the transaction to a friend) and ask them to send the bitcoins back to you.
If you need more help can you please provide more details in regard to exactly what happened. Also is this in regard to sending BTC to a BCH wallet, or vice-versa?
You can also search the address you sent to (and also the transaction ID, if you have it) on a public block explorer such as:
Bitcoin Cash (BCH) - https://explorer.bitcoin.com/bch
Bitcoin (BTC) - https://explorer.bitcoin.com/btc
Please provide as much detail as possible but NEVER share you private key(s) or mnemonic seed (backup phrase / recovery phrase) with anyone