Pelvic rest during pregnancy

Has anyone else ever been put on pelvic rest while they were pregnant? My Dr. said no sex and no caffeine . I'm 7 weeks pregnant I'm going to go crazy 😝 of course it will all be worth it