Pregnancy&Sex?

I’m in my first trimester& I had sex. Is that good or bad? When can I have sex ? 😭 I should of thought of this before doing it.