You have to get a shot before going on the trip.

Literal

Trip [to-に] go before [time-に] injection [object-を] must-do.

注射をする (to get/give an injection) and ~前に (before) combined with ~なければならない (must). A practical travel health requirement.