Buses, maybe. Trains: Nope. Doors are locked from the inside, usually aren't accessible while moving and even someone would get inside, well, you can't get off the tracks. You'll get a red signal and a forced braking shortly afterwards. It's really, REALLY hard (by design) to wreck something on purpose with a modern high speed train.