Yes, and regularly, and so do millions of other Tokyo residents. Cases here are up to ~200 daily new cases with (AFAIK) zero linked to public transit (and this is weeks after our quasi-lockdown ended).
If public transit/trains were by definition a significant risk factor Tokyo's situation would look a _lot_ different.
Now maybe a train stuffed with non-mask wearing people talking constantly would be a different issue.