Antibiotics

Hi, can antibiotics cause spotting? It’s been a week on antibiotics and a few days ago i noticed redish brown spotting, i had sex today and i was bleeding. My period i due just in 2 weeks, can it be medication? TIA