Depends on the virus - something with the long incubating periods and frequent lack of symptoms like Covid yes, but something much more quick and deadly (say, Ebola, even though 2-21 days is still potentially slow) could result in quick mass deaths without the opportunity to spread it around.
It is beneficial to the survival of a virus to infect the largest group that it can. A virus targeted to a small group of people has a large "survival benefit" the moment it can mutate to infect everybody.
In addition, it's really hard to target a biological entity at a specific subgroup of humans. From a biological standpoint, all humans are damn near identical.
Sarin would be classed as chemical, not biological.
It's also worth illustrating that their primary terrorist act killed 15 people, after releasing sarin on 5 different trains during Tokyo's busy rush hour. You would have been more effective just lobbing a single grenade.