Has anyone done this before ?

I want to find out the babys gender already but im only 17 weeks 4 days, i heard something about doing a blood test to find out, does it really work? Any risk? Please help!😩🥺