No. EA/DICE shut down the official Battlefield: Bad Company 2 master servers in December 2014. A used disc provides the same offline content (campaign, local co-op) but **zero** official online multiplayer.
Bad Company 2: Vietnam used the same server infrastructure—also offline since 2014.
Warning: Unofficial servers are unstable, unmoderated, and may violate EA's ToS.
Buy a used copy only for the single-player campaign.