Sure. Both programming and nursing are relatively niche fields. Nursing is arguably a significantly more
professional field, given that (1) formal requirements are higher, and (2) Nurse Practitioners are effectively educated at the MS level (versus a BS or lower for the average programmer).
If we're using job difficulty and stress as some of our metrics for fair pay, then I would argue that tech support and pizza delivery should also be higher paying! But even with that, it doesn't seem unreasonable to factor in the professional qualifications (and corresponding time and money commitments) required of nursing. Relative to all three, it's a remarkably low-paying job.