Question about trigger shot?

Nicole • Pregnant w/ baby 1..due April 2017
We just got the go to do the trigger shot tonight. We were told to do the shot at 10:00pm and that we can have sex before or after the shot. Which is better to do? Also if we do the shot, how long after we do the shot should we wait to have sex?