Not really, assuming that the D50 is relatively new and clean. My wife has a D50 and it has a COUPLE of features that put it a step ahead of the D40 in convenience and being intuitive to use, but I don't think you are moving up in image quality.
Here's my stock answer comparing [...]