Sure, you just need to make sure that you don't use them in a way that infringes on Mattel's trademark. If you started selling dolls or showing ads for dolls, you might get in trouble.
Not sure why you would bother though. I don't see much value in Barbie names