Are purchases tied to your battle.net account?

I purchased a boxed copy of StarCraft 2 a while back. I'm trying to install it on my new computer and it's asking for a serial code...I through the box out. I figured battle.net was like Steam. Do you think there's anyway I can access the license with my account or do I need to buy a new license?