Birth defect blood test??

My OB brought this up to me & I heard that you can also find out the gender early through the test. Would it be bad if I just got the test to find out the gender early? or is that a selfish decision? I'm really debating on doing it but I don't want to worry myself if the test comes back positive for a birth defect. 
Advice?