I had sex after a week of taking abortion pills. Will it cause any infection?

I had sex one week after a miscarriage. Am I safe?