Regardless, just because you buy online doesn't mean the game is preowned and so the code and online pass may still work. You just have to make sure the game you buy is new, and if you know where to look you can still get it at a good price.
There's usually some online pass and isn't the one for GOTY only allowed to be used on 1 console or 1 account?
Online Passes are still 'DLC' so it can be shared between two account.
But, if you buy a used and the online pass was already used (even once), you can't use it again. Once the pass is activated, it can be downloaded from the same account onto two different consoles.
But like I said, if you already have an online pass, it shouldn't matter. You should just be able to pop in the disc and be good to go. All the DLC is located on the disc.
Or, you can buy the game new. My friend bought it recently new from Amazon and got a great deal on it. Had no issue with the online pass or anything either.
That's why both TSD and Teammate have GoTY.