Do I need anti-d injection if both parents are rhesus negative?

Yes. If both your parents are rh negative then you must be rh negative. If your partner is rh positive then your baby may be rh positive in which case you would need rhogam.
No. If you mean that you are rh negative and the father of the baby is also rh negative then you do not need rhogam. Most of the time we do not have confirmation of the paternal blood type so we suggest the mom receive Rhogam at 28 weeks. After delivery we test the baby to see if you need another dose.