sex while pregnant

Anyone else had multiple miscarriages are you avoiding sex? Should I avoid sex while pregnant? I'm almost 5 weeks I've tried to avoid it.