If I happen to get the wallet address wrong, is there a way to recover the transaction?
The answer is No, once a Bitcoin transaction has passed all confirmations and is already successful, there's no way for you to recover that Bitcoin back.
Although it's not possible to send Bitcoin to a wrong wallet that doesn't exist, if you're inputting a wallet address and then you made an error by typing the wrong character or you omit a character, there's one in a million chances that the wallet belongs to another Bitcoin user.
Except maybe you copied someone else's wallet address while trying to copy another, and this is why it's advisable to double check the wallet before initiating any transactions.