Whether a child can travel alone on a train depends on the child’s age and on the specific train provider’s policy. Many train companies have minimum age requirements, with some not allowing children under a certain age (e.g. 12 or 16) to travel unsupervised.
It’s crucial to check the train provider's terms and conditions before confirming your booking as there can be some booking restrictions and/or extra requirements or documentation.