Variety:

Sources tell Variety that “The Crown" star Matt Smith is joining “Star Wars: Episode IX," which is currently in production in the U.K. It’s unknown at this time whether the “Doctor Who" alum will be on the side of the rebels or the evil empire.

I do believe he’s the first Doctor to jump to Star Wars.