Brown discharge

Naomi
Im 31 weeks and i just went to the bathriom nd had some brown discharge i had sex yesterday am nd my baby still continues to be active i am worried what is it should i call the doctor