It depends on your industry and your office vibe. If it’s common to wear jeans to the workplace on a normal basis, then yes, you should be fine wearing jeans to the holiday party, too.
But if you’re usually expected to wear suits, dresses, heels, and more formal attire in your office, you may be the odd one out if you show up in jeans. Unless the attire has been communicated on the invitation as “business casual,” “festive attire,” “or “casual,” you may want to lean more toward professional officewear.