Baby Shower Timing

Is having a baby shower around 36 or 37 weeks too late or cutting it close? I'm worried about having it so late in case anything happens such as preterm labor.