Can an imperfect hub make a disc rotor rub?
It could be a number of issues but I doubt you got a bad hub. Check to make sure your wheel is seated correctly in the fork. You could also try tightening/loosening the skewer to see if that may help align things. If all that doesn't work then you can try to realign the caliper if necessary. I wouldn't worry much if its just a little rub.