Sex while pregnant

Is having sex while pregnant bad? I'm scared of his w*lly hitting the baby?