Can I still have sex?

I’m 9 weeks pregnant. I’ve spotted after sex and orgasms and was recommended (not by my doctor) to put myself on pelvic rest. Is this necessary? We are so horny.