Pregnant can I have sex

At my 20 week ultrasound the tech said that my placenta was covering my cervix

I went back 2 weeks later and she checked again and said it's moved now..

She didn't say about any restrictions..

So I'm just wondering is it ok to have sex or not?