Can you get to Cardiff from London by Tube?

No, as the Tube (the London Underground) does not run outside the City of London. You could however use the Tube to travel to Paddington Station and catch a train to Cardiff. The journey would take approximately 2 hours if travelling during the day and may be of longer duration in the evening.