Help when to tale pg test

If you have sex 2weeks after birth or 3 can you get pregnant ans when is a good time to test?