too early for a pregnancy test?

I'm afraid I might be pregnant but I'm not sure if it's too early to take a test. it's been a week since we had unprotected sex. I just switched birth control this month so I'm not sure if that could change my chances of pregnancy.