Yes Public transport is probably the best use case for contact tracing. A combination of location history and fare card data will work for buses. For trains it's a bit trickier since you want to resolve that you're in the same car, and Bluetooth would work well in this case.