Implantation bleeding

What is implantation bleeding? Does that happen after you have sex and basically means your pregnant? Please educate me. Also if you get your period do you still have to take a pregnancy test after?