Yeah Ken. It will work on the D50. I shoot with a D70. Essentially the same cameras, very similar for sure. The DX has no aperture ring, the D has an aperture ring. If the D50 does not allow for a manual mode, you would simply leave the lens aperture locked so that the camera controls it.
Should not be a problem.
Regards, Dan