I would still use it - the chemicals in the hair dyes only start working when you mix the 2 bits together (which obv hasn't happened yet) so they will be absolute fine.
If you are worried, do a test (instructions are in the box) on your skin - which is recommended every time you buy a new brand. If your skin is fine, it means the hair dye is good to use.