No — Star Wars Battlefront 2 is a paid title, not a free game.
The good news is that it's often heavily discounted. PC copies have been sold for as little as $9.99 through legitimate shops such as Steam, Amazon and eBay, and sale prices drop lower still during seasonal events.
Be cautious of any site offering a "free" copy. Those are almost always unofficial downloads that risk malware or a ban, so buying a cheap legitimate key is the safer route.