Sex while pregnant

Is it bad to have sex when pregnant on first trimester?? I noticed when i wiped i had a bit of pink spottinggg..?