So long as you purchased PC2-6400 DDR2-800 DIMMs in an appropriate capacity, you can safely use them in place of the PC2-5300 DDR2-667 units specified for use with your particular machine.
The inverse is not true: you could not use slower memory modules in a later, faster machine.