VERY newbie question

The buzzer is rated from 7 to 14V…Ok, remember, I’m new to this…so I’d go from the VIN power pin to a transistor, then to the buzzer?