All missile weapons have a maximum range. A model cannot shoot at a target if it lies beyond this maximum range. Often, not every model in a unit will be within range of the target. Therefore, you must check the range for each model in a unit individually.
The one exception to this is when a unit chooses to Stand & Shoot as a charge reaction. In such cases the charging enemy is assumed to have entered the weapons' range before any shots are fired.