Is there a train from Budapest airport to the city center?

No, there is no direct train to the city center. You can reach the city center by public transport easily. Buses run frequently from the airport to the city center.