Yes, of course. If you are able to pick up your ticket from Bangkok, you can board the train from any station on the route.