If you want to optimise for targeting a specific virus, then yes, narrowly targeting the most stable functional element of that virus is preferable to targeting other elements of that virus. If you want to optimise for having a broad response to related viruses, then a less narrowly targeted response is preferable.