Are you sure that you want to go to Barca? There is not a lot to see there, and there is no train station anywhere near it I think...
https://en.wikipedia.org/wiki/Barca,_Soria
But, yes, in general the train is still the best option between Sevilla and Madrid (except for someone who is connecting to a flight leaving from MAD).
But you give no information on what prices you are looking at, and when you are travelling, so it's difficult to tell you anything else (other than "yes, it's the best option").