When can I take a test?

Monica • TTC 1.5 years. 2 miscarriages. 33 years old.

I had a d&c on 1/27. My husband and I had sex twice last week. My doctor said don’t get my hopes up because I may not be able to get pregnant until after my first period, but she said I MIGHT ovulate before my first period. When can I take a test? I’ve read my hormone levels might not go back to normal for a while and I might get a BFP when in fact it’s leftover hormones from my last pregnancy.