Pubic hair shaving or waxing

Do we need to shave pubic hair before going to hospital ..as i have read shaving hair after 36 weeks increased ridk of infections