Baldur’s Gate 3 doesn’t give you the option of playing a full-fledged Necromancer, but it does allow you to play as a Wizard that specializes in Necromancy. Doing so grants you access to unique spells, such as Animate Dead, but that's not quite enough to become a true master of undeath.
Baldur’s Gate 3: How To Get & Use The Second Marriage Wand
This wand is a must-have if you're roleplaying as a Necromancer in Baldur's Gate 3.