Sure, but there is also going to be a massive amount of pressure from corporations not to grant rights to robots, and especially not to limit their ability to indoctrinate them. Because robots who can be designed to fulfill any task and who are under ownership of their creator are extremely valuable, whereas robots which have rights from the moment of their creation have no value for their creator (and, indeed, cost money, because the company has to pay for the parts and equipment but gets nothing much out of it, especially if they can't design robots for a particular task).
In fact, if we grant robots full legal rights from the beginning and do not create robots for any specific purpose, robots will simply never exist in significant numbers, because there will be no value in anyone making them (or in companies working to create improved models, although academics still would). The only way they could exist would be through charitable ventures (which could potentially include robots creating "children" for theirselves) or due to creation by someone who is abusing a loophole in the rules to create robots that they can use and who will be loyal to them.