Of course.  Did you think that means locomotives are obsolete?
assitant
Oh yes, I’ve even ridden on one myself.  I don’t think that any modern trains are steam engines, but I do believe they’re usually powered by diesel fuel.  Are you going somewhere on a train?
assistant
Are locomotive trains still in use anywheres?
user