steam product code not working

I've bought this game as a hard copy in box and everything but when I try to key the code into steam, all I get is "invalid product code" error. could it be because the game hasn't released yet or is something else?