Most likely not. Codes for Build-A-Bearville were generally tied to purchases made after the virtual world opened, so a bear bought earlier may not have one.
That said, policies change and staff can make exceptions. Your best bet is to phone your local Build-A-Bear Workshop or contact guest services and explain the situation. Bring your receipt or any paperwork that came with the bear — proof of purchase makes the conversation much easier.