Pregnant and sex

I just recently found out I am pregnant, I just had sex and after sex I was bleeding, is it safe to have sex in the first trimester?