I took a pregnancy test but it was negative I took it a couple days after sex did I take it to early?

Yes, too early. Conception, as defined by the generation of a fertilized ovum, occurs within day or so of the sex. However, it takes about two weeks for the embryo to make enough HCG to produce a positive pregnancy test. Blood test may be done a day after a missed period. Home pregnancy tests should be done 4-5 days after the missed period. Use first morning urine and follow instructions for the test carefully. If you do not wish to be pregnant, use contraception all the time, every time. You may consider implanted contraceptive, or IUD. Practice safe sex. Get HPV vaccine.