Lawrence,
While the Nikkor D Model 50mm will work with your camera just fine, it is not fully compatible with all of the cameras produced by Nikon. Nikon cameras in the D40, D60, D3xxx and D5xxx will not be able to auto focus due to the lack of a AF motor in the lens and without the AF motor in-camera. Other than that, (being a manual focus lens with these cameras), it will work just fine with these and other Nikon cameras. I have some D model lenses and I'm very happy with them in most situations.
As always, you can check lens/camera compatability at Nikon's website.
WM