Drinking before I got my positive.

I guess I'm posting this just to make sure it was ok.. I got a negative last Saturday at 9 dpo. That night I drank some alcohol. I didn't get drunk or anything. Then this past Wednesday, I got my positive. Was that ok? I haven't had anything since. I also wasn't expecting to get pregnant this cycle, which is why I drank.