I think it depends on your situation. For me, the more kids I had the it worse it became. Dh and I only wanted 3 kids. After Ds1 was born I momentarily got over my gd, but it came back when I was pregnant with ds2 and turned into gender depression . I had some pretty dark moments with him, but when he was born he became my light at the end of the tunnel and is now my sweetest boy .
When he was around 6 months, I instead became obsessed with having a third baby; a girl. Had she been a boy would I have had gd? Yes, I think I would have - but the reason wouldn't be because I wasn't happy with my boys, but simply because she was my last baby.