Semen analysis

Does anyone know what my husband has to do before hand? Can we still have sex the night before?