Yes. Honestly i'd go with the d40. i actually DID buy a d40 and love it.
One thing that sold me was when shooting in manual, it will show examples of what changing each factor (fstop, shutter, everything i just mentioned) will do to a sample picture.
It has great `control for beginners and if you dont feel comfortable with this, you can always shoot in auto.
i took these pics right of the box the first day i got it using auto.
Also look through my profile, all the pics from the latest comp i posted are shot in auto or aperture propriety mode