birth control and timing??

I take my birth control at 6:45 pm, is it bad that I take it in the evening?? if I have sex before this time can I get pregnant?